[web2py] Re: Google wallet widget wont initialize on the page

2017-12-24 Thread Massimo Di Pierro
That functionality has been implemented so long ago that I would not be surprised if it does not work any more. We should probably simply eliminate from contrib. On Wednesday, 20 December 2017 01:02:36 UTC-6, Rahul wrote: > > Hi All, > I am trying to integrate and utilize the basic

[web2py] Re: Asking support for MySQL create/alter column "AFTER" keyword

2017-12-24 Thread Massimo Di Pierro
look in web2py/gluon/packages/dal/pydal and search for "ALTER" in all files there and subfolders. It wiil give you and idea of how the logic is implemented. On Monday, 18 December 2017 03:59:52 UTC-6, Alfonso Serra wrote: > > I would love to, have some time in December to spend in personal

[web2py] Re: Js packages from browser

2017-12-16 Thread Massimo Di Pierro
This is fantastic! On Monday, 11 December 2017 00:01:37 UTC-6, marco mansilla wrote: > > Just found this, looks nice. > > > https://medium.com/@ericsimons/introducing-turbo-5x-faster-than-yarn-npm-and-runs-natively-in-browser-cc2c39715403 > >

[web2py] Re: New Bootstrap 4 User Interface

2017-12-16 Thread Massimo Di Pierro
please do! On Thursday, 7 December 2017 03:01:01 UTC-6, Oasis Agano wrote: > > Hello, > > The new user interface looks awesome, far more than the one that was there > for the previous versions. > I wanted to know if someone(like me) can add a pull request on it on the > nav section to

[web2py] Re: Glyphicons not showing

2017-12-16 Thread Massimo Di Pierro
Will be fixed in next version of web2py. Problem is that class names are different... need to rename them all. On Thursday, 7 December 2017 16:45:50 UTC-6, Alex Glaros wrote: > > From another thread here: Bootstrap 4 dropped the bootstrap 3 included > glyphicons. You need to use fontawesome or

[web2py] Re: Asking support for MySQL create/alter column "AFTER" keyword

2017-12-16 Thread Massimo Di Pierro
I would support to change. Can you help make it happen? On Thursday, 7 December 2017 10:18:35 UTC-6, Alfonso Serra wrote: > > Hi everybody. > > I would like to ask for support for the create column "AFTER" another > column keyword so whenever we change something in our models the order of > the

[web2py] Re: Scheduler workers crash on usage of urllib

2017-12-16 Thread Massimo Di Pierro
fixed on gitghub. thanks for reporting it. On Thursday, 7 December 2017 06:26:33 UTC-6, Ryan Herbert wrote: > > I found this issue: https://github.com/web2py/pydal/issues/498 which > denotes my exact problem, so it should be fixed soon (?). Not entirely sure > why this issue didn't come up when

[web2py] Re: Get reference format representation on dal callbacks

2017-12-16 Thread Massimo Di Pierro
Can you please provide a complete example of what you want using pseudocode? On Wednesday, 6 December 2017 10:31:57 UTC-6, Carlos Cesar Caballero wrote: > > Hi, I am building a module (plugin) that is using some "after insert" > and "after uptade" dal callbacks. The tables has references

[web2py] Re: UnicodeDecodeError with mssql3 in nvarchar field

2017-12-14 Thread Massimo Di Pierro
Latin1_General_CI_AS must a configuration parameter of your database. web2py only works with utf8 On Sunday, 3 December 2017 23:26:00 UTC-6, Tim Richardson wrote: > > I have a unicode string retrieved via a query from a different database on > the same Windows Server (MS SQL 2008) . > It is a

[web2py] Re: Virtual field error :'FieldVirtual' object has no attribute 'listable' in 2.16.1

2017-12-14 Thread Massimo Di Pierro
I am pretty sure this is fixed in the latest pydal git master. I will build a new web2py version asap. On Sunday, 3 December 2017 18:38:51 UTC-6, dome wrote: > > Dear Massimo > > reference to this same problem: > https://github.com/web2py/web2py/issues/1815 > > I replaced gluon source with

[web2py] Help with icons

2017-12-03 Thread Massimo Di Pierro
In the old days of BS2 we used "icon icon-{name}" for icons. then to support BS3 we also added "glyphicon glyphicon-{name}". now we use BS4 and there are no more icons we have to use Font Awesome so we should add "fa fa-{name}". I can easily add this to sqlhtml.py and we will all be fine but

[web2py] Re: No-dropdown widget?

2017-12-03 Thread Massimo Di Pierro
instead of (the default) requires=IS_IN_DB(db, table) do requires=[IS_IN_DB(db, table)] On Sunday, 3 December 2017 03:53:41 UTC-6, Dave S wrote: > > I defined a new table, where a field is a list reference to another > table. Going into admin to populate the table's first few

[web2py] Re: Virtual field error :'FieldVirtual' object has no attribute 'listable' in 2.16.1

2017-12-03 Thread Massimo Di Pierro
I just fixed this in the master branch of pydal. Can you please confirm it is fixed for you? On Saturday, 2 December 2017 18:26:12 UTC-6, icodk wrote: > > Virtual field definition generate error in > 2.16.1-stable+timestamp.2017.11.14.05.54.25 > Works fine in 2.14.06 > my field definition is:

[web2py] Re: mounting web2py at sub URL apache mod_wsgi

2017-12-02 Thread Massimo Di Pierro
why? everybody here has moved away from apache2 and does not look look mod_wsgi is very well supported. We strongly recommend nginx. On Thursday, 30 November 2017 18:40:29 UTC-6, roland wrote: > > I cannot figure out how to install web2py to work on a sub URL. This > matter has been discussed

[web2py] Re: Possible bug using | at end of element of list:string

2017-12-02 Thread Massimo Di Pierro
I agree this is a bug. The problem is that this means our internal representation is ambiguous. We cannot fix this without changing the internal representation and breaking backward compatibility. Will think of a solution. Thanks for catching this. On Wednesday, 29 November 2017 07:12:56 UTC-6,

[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

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

2017-11-27 Thread Massimo Di Pierro
p install to install complete packages. So, my opinion is that we should > work on having a polished approach for future versions of web2py, similar > to what PHP Laravel community did with vue. > > > José L. > > 2017-11-26 21:21 GMT+01:00 Massimo Di Pierro <massimo.dipie

[web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-27 Thread Massimo Di Pierro
What information do you need in particular? Just make sure you use sticky sessions or sessions in db or sessions in cookies or no sessions and it scales horizontally like any other framework. Bottleneck is the db. On Monday, 27 November 2017 07:20:58 UTC-6, Áureo Dias Neto wrote: > > I have a

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

2017-11-26 Thread Massimo Di Pierro
It seems that using the cli is becoming standard these days but I still like the original simplicity of being able to write js without need for nodejs. I tend to program in this way: #... in index.html next next start again

[web2py] Re: error: 'No module named sanitizer' after upgrading to 2.16.1

2017-11-21 Thread Massimo Di Pierro
check that you have web2py/gluon/sanitizer.py maybe you accidentally deleted it or maybe the user does not have read permission. Another option is that you app does a non thread safe os.chdir() On Monday, 20 November 2017 15:46:07 UTC-6, Ton Sjerps wrote: > > After upgrading from 2.15.4 it gave

[web2py] Re: Janrain recently broken (and how to fix)

2017-11-21 Thread Massimo Di Pierro
thanks Anthony On Wednesday, 15 November 2017 14:00:12 UTC-6, Anthony wrote: > > If anyone is using web2py's Janrain integration, it looks like Janrain > recently made a change that breaks the web2py code. I submitted a pull > request to fix it, but in the meantime, a temporary workaround is to

[web2py] Re: where is pydal doc ?

2017-11-14 Thread Massimo Di Pierro
I can extend the documentation but I am not sure what people find is missing specifically. Can you ask some specific questions? how do I do [what]? On Wednesday, 8 November 2017 08:40:33 UTC-6, Leonel Câmara wrote: > > Lars I think everyone agrees the pyDAL codebase should be better >

[web2py] Re: revert to previous version of a record while using enable_record_versioning

2017-11-14 Thread Massimo Di Pierro
it is not implemented because I cannot see one size fits all. Often reverting is not as easy as reverting a single record. On Tuesday, 14 November 2017 13:02:46 UTC-6, Pengfei Yu wrote: > > Hi, > > I am using "auth.enable_record_versioning" to track the version of each > record's update for my

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-14 Thread Massimo Di Pierro
I have. Works fine. You can import any python library in web2py as long as it is installed. You can have issues with libraries that are not thread safe and if they are, you will have to lock when using them. I do not know for sure which algos in scikit learn are thread safe and which ones are

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

2017-11-14 Thread Massimo Di Pierro
This is fantastic. Thank you Carlos, please email me personally about you work. I think this is the path to the future of web2py. On Tuesday, 14 November 2017 10:48:03 UTC-6, Carlos A. Armenta Castro wrote: > > I have using Web2Py for too many years for commercial websites and for > Intranets

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Massimo Di Pierro
pp and not > defining explicid validator work as usual. > > 2017-11-14 10:01 GMT-05:00 Massimo Di Pierro <massimo.dipie...@gmail.com>: > > > check your models/menu.py you may have separators in the menu. The new > > layout does not support them. >

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Massimo Di Pierro
check your models/menu.py you may have separators in the menu. The new layout does not support them. On Tuesday, 14 November 2017 02:22:51 UTC-6, 黄祥 wrote: > > *Traceback (most recent call last):* > File "/Users/MacBookPro/project/python/web2py/gluon/restricted.py", line > 219, in restricted

[web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Massimo Di Pierro
ted, and ran > `python web2py.py`. > In the browser see this message *"Requires web2py 2.15.5 or newer" . *Not > sure what the issue is? > > Python 2.7.12 > Windows 10 > > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2017 > Version 2.

[web2py] web2py 2.16.1 is OUT

2017-11-13 Thread Massimo Di Pierro
web2py 2.16.1 is OUT Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, Giovanni, and all those who contributed. the most visible changes are: - welcome now defaults to bootstrap 4 - lots of cleanup in the welcome app and new examples in default.py - simplified layout.html

[web2py] Re: forward auth.user record

2017-11-01 Thread Massimo Di Pierro
Absolutely both should be decorated. You solve the problem by having some periodic ajax ping that keeps the session alive On Wednesday, 1 November 2017 09:37:28 UTC-5, Pierre wrote: > > hello everyone, > > I have a decorated action | controller (@auth.requires_login()) making an > ajax call to

[web2py] Re: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-01 Thread Massimo Di Pierro
make sure web2py is in PYTHON_PATH On Wednesday, 1 November 2017 08:19:02 UTC-5, Omicron VT wrote: > > > > El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT escribió: >> >> I have been using websocket_messaging.py without problems in version >> 2.14.6. After upgrading to 2.15.4 i

[web2py] Re: websocket_messaging incompatible in web2py 2.15.4?

2017-11-01 Thread Massimo Di Pierro
No Looks like pypyodbc is not installed properly On Saturday, 21 October 2017 08:12:29 UTC-5, mweissen wrote: > > Some months ago I have written a test application for > gluon/contrib/websocket_messaging.py and it worked very well. Now (after an > update to 2.15.4) I tried it again and I got

[web2py] Re: Increment the value of a field + 1 or how to auto-increment a field value ?

2017-11-01 Thread Massimo Di Pierro
I guess what I meant is that you have a possible concurrency problem: max_id=db(db.invoice.company_id==auth.user.company_id).select (db.invoice.invoice_number, orderby=~db.invoice.invoice_number, limitby= (0,1)).first().invoice_number db.invoice.invoice_number.default = max_id + 1

[web2py] Re: Web Services for Remote Portlets?

2017-10-18 Thread Massimo Di Pierro
Never heard of a portlet before. I looked it up and I doubt you will get much help about them in this mailing list. It is not a common protocol. Nothing prevents web2py from interoperating with it but it is not something I intend to support. On Tuesday, 17 October 2017 21:39:05 UTC-5, IVINH

[web2py] Re: response view with markdown

2017-10-18 Thread Massimo Di Pierro
Just create a generic view that does it. It is a good exercise. On Tuesday, 17 October 2017 16:29:24 UTC-5, 黄祥 wrote: > > why web2py can't render the views in markdown format that been assign > (*.md) in most simple way? > e.g. > def testmd(): > response.view = 'default/testmd.md' >

[web2py] Re: Cant access Google Cloud SQL on GAE application

2017-10-18 Thread Massimo Di Pierro
I use mysql on google app engine all the time. I use mysqldb with latest web2py and dal without any issue. That is not the right connection string. It should be more something like this: google:MySQLdb://username:password@/dbname?unix_socket=/cloudsql/projectname :us-central1:dbinstanceid On

[web2py] Re: Web2py won't start with getLogger error

2017-10-18 Thread Massimo Di Pierro
All I can offer is help you debug. Are you still in Chicago? Stop by my office on Tuesday afternoon. On Friday, 6 October 2017 18:32:51 UTC-5, Omi Chiba wrote: > > My Python version is 2.7.4. and My Web2py is Version > 2.4.7-stable+timestamp.2013.05.24.17.48.47 > > Nothing changed since I

[web2py] Re: Why web2py server hangs/freeze?

2017-10-11 Thread Massimo Di Pierro
we stopped recommending and supporting apache long ago. The world has moved to nginx and so have we. these problems are apache problems not web2py problems and that is why we stopped supporting it. On Friday, 15 September 2017 00:40:46 UTC-5, Narendra Kumar wrote: > > Hi, > > As suggested in

[web2py] Re: Web2py won't start with getLogger error

2017-10-11 Thread Massimo Di Pierro
This is what I get: Python 2.7.13 |Anaconda 2.2.0 (x86_64)| (default, Dec 20 2016, 23:05:08) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check

[web2py] Re: MySql encryption using DAL

2017-10-11 Thread Massimo Di Pierro
On Saturday, 7 October 2017 01:55:53 UTC-5, appjar...@gmail.com wrote: > > Thank you Massimo! > > There is a great detailed deployment recipe for SSH tunneling to your > database server from a Heroku app instance (dyno). It works as of this > post.10/8/17 > >

[web2py] Re: Web2py won't start with getLogger error

2017-10-06 Thread Massimo Di Pierro
The file in question no longer exists. It has been moved to a subfolder long ago. The error you are getting makes no sense since python >>> import logging >>> logging.getLogger that is a function from the python module logging, and not a web2py function. to diagnose this it is

[web2py] Re: MySql encryption using DAL

2017-10-06 Thread Massimo Di Pierro
DAL does not provide https encryption. I do not if the adapters support it either. The solution is to create a SSH tunnel between the server and the database server and the use a URI string connecting to localhost. On Thursday, 5 October 2017 14:21:22 UTC-5, appjar...@gmail.com wrote: > >

Re: [web2py] Re: Google AMP - benefits with web2py?

2017-10-06 Thread Massimo Di Pierro
The fact is the world is changing. these days people should be use webpack and that requires node.js therefore we I think web2py should stick to what it does best and stay out of css/jss for now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: 2.15.4 web2py.js

2017-10-06 Thread Massimo Di Pierro
This is a mistake. Will be fixed. On Monday, 2 October 2017 14:06:32 UTC-5, Dave S wrote: > > Just getting ready to try out 2.15.4, and BeyondCompare tells me that > applications/welcome/static/js/web2py.js changed, > but the same file for examples and admin did not. If this is deliberate, >

[web2py] Re: component rebuild via anchor helper

2017-10-06 Thread Massimo Di Pierro
You can do, but it feels wrong. linked page On Monday, 2 October 2017 06:47:14 UTC-5, Pierre wrote: > > hello all, > > I am using the A helper as described in the book to reconstruct a page > component when user presses a button: > > {{=A('linked page', _href=URL('func', vars={'a':a, 'b':b}),

[web2py] Re: Python3 and uwsgi

2017-09-30 Thread Massimo Di Pierro
Can you help? On Wednesday, 23 August 2017 18:33:08 UTC-5, Leonel Câmara wrote: > > wsgibase in gluon/main.py probably needs a few to_bytes calls > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: login strange( or not ) behaviour http/https

2017-09-30 Thread Massimo Di Pierro
This is a basic security requirement to prevent information leakage. https://www.owasp.org/index.php/Session_Management_Cheat_Sheet "Web applications should never switch a given session from HTTP to HTTPS, or viceversa, as this will disclose the session ID in the clear through the network."

[web2py] Re: Future releases and support

2017-09-30 Thread Massimo Di Pierro
2py but every time I comeback to > build something, I have to look for hours on how to do that one thing. > > > just my 2 cents. > > > cheers > > > On Wednesday, September 20, 2017 at 10:18:14 PM UTC-7, Massimo Di Pierro > wrote: >> >> I second what

[web2py] Re: Broken backwards compatibility: Using a field in multiple tables yields error

2017-09-30 Thread Massimo Di Pierro
Thanks for reporting this. We will fix this in 2.15.5 shortly. On Monday, 25 September 2017 11:38:51 UTC-5, Jordan Myers wrote: > > I have many tables that share common attributes, so for convenience and > ease of refactoring, I decided to define such common fields and then simply > reference

[web2py] Re: Kaspersky problem with web2pyslices.com

2017-09-30 Thread Massimo Di Pierro
LOL. May be the certificate is expired or self signed? I am not sure web2pyslices is really maintained at this time. There are talks of a revamp On Saturday, 23 September 2017 15:05:53 UTC-5, Leonel Câmara wrote: > > Uninstalling kaspersky solves this problem. > -- Resources: -

[web2py] Re: Cassandra and web2py

2017-09-30 Thread Massimo Di Pierro
You have db = cluster.connect('mykeyspace') which means that for you db is not a DAL() object but a Cassandra connection. You the pass it to auth = Auth(db) but here Auth(...) expects a DAL() object. On Friday, 22 September 2017 20:18:28 UTC-5, 黄祥 wrote: > > tryin to use cassandra with

Re: [web2py] Re: Support for BIT(1) as boolean?

2017-09-30 Thread Massimo Di Pierro
gt; > On Monday, 11 September 2017 00:08:00 UTC+1, Massimo Di Pierro wrote: >> >> what adapter are you using. What is your URI string (without passwords >> please)? >> > > By the way, starting web2py using Rocket now says > /usr/local/lib/python2.7/site-packages/py

[web2py] Re: checkbox don't appear

2017-09-30 Thread Massimo Di Pierro
No idea. Use the chrome inspector and look if it is a css issue. The html for the checkboxes should be there. On Thursday, 21 September 2017 05:56:16 UTC-5, Lars wrote: > > Hi, > > I want to display a form with the following code : > > def display_line(): > T = current.T > try: >

[web2py] Re: Build query without DB connection

2017-09-20 Thread Massimo Di Pierro
In web2py, and in general in code that runs multithreaded you should not define variables in modules at top level and then import them because they are cached and then shared by multiple threads. That is not thread safe and will cause all kind of problems. Modules should define functions and

[web2py] Re: Future releases and support

2017-09-20 Thread Massimo Di Pierro
I second what Anthony said. There are less commits because the code is solid and grew up to be quite complex. Also we are thinking about where to go from here. On Monday, 11 September 2017 06:48:50 UTC-5, Anthony wrote: > > On Monday, September 11, 2017 at 2:46:17 AM UTC-4, Arnab Dutta wrote:

Re: [web2py] Re: dumb question about sessions server used to store tables in order to avoid hits to db

2017-09-10 Thread Massimo Di Pierro
you can delete session['anyvar'] or session.anybar = None it will be saved this purging anyvar. On Thursday, 7 September 2017 16:29:03 UTC-5, CDA wrote: > > Can we purge only a subset of sessions? > > On Sep 7, 2017 5:17 PM, "Anthony" wrote: > >> On Thursday,

[web2py] Re: how to import a package that has deeply nested imports

2017-09-10 Thread Massimo Di Pierro
Thanks for letting us know. That usually works. When it does not the you can use the web2py/site-packages folder. On Tuesday, 5 September 2017 07:26:35 UTC-5, Carl Hunter Roach wrote: > > placing the tlslite directly in applications/appname/modules enables > import statements to resolve

[web2py] Re: Why web2py server hangs/freeze?

2017-09-10 Thread Massimo Di Pierro
Let's rule out the usual culprits: - when you saying it hangs are your trying from a new incognito window or from the same browser? It may be a session lock not a freeze. - are using apache? Don't it has memory issues. Use Nginx - do you have processes that may take a lot of time? consider

[web2py] Re: how to pass table name to controller?

2017-09-10 Thread Massimo Di Pierro
I think you want: tablename, fieldname = specificTableToSearchMembersFromID.split('.') db.Role.object_super_object_FK.requires = IS_IN_DB(db (db[tablename][fieldname]), 'cost_center.super_object_fk', '%(cost_center_title)s', zero = T('choose one')) On Friday, 1 September 2017 16:36:10 UTC-5,

Re: [web2py] Re: Support for BIT(1) as boolean?

2017-09-10 Thread Massimo Di Pierro
what adapter are you using. What is your URI string (without passwords please)? On Monday, 4 September 2017 09:53:46 UTC-5, Yan Wong wrote: > > With this code, I now find that with the latest version of web2py > (2.15.4), I get > > File "applications/XXX/models/db.py", line 46, in >

[web2py] Re: back button

2017-09-10 Thread Massimo Di Pierro
You cannot add buttons to a readonly crud form because it has no button row. You can do: form.components.append(A('Back',_onclick="window.history.go('-1')")) On Sunday, 3 September 2017 13:49:31 UTC-5, Andrea Fae' wrote: > > I use in a method this > form=crud.read(db.evento,evento) >

[web2py] Re: web2py 2.15.4 is OUT

2017-09-03 Thread Massimo Di Pierro
Can you try again? Should be fixed. On Sunday, 3 September 2017 11:54:48 UTC-5, Massimo Di Pierro wrote: > > very strange. Looking into this. > > On Saturday, 2 September 2017 11:33:00 UTC-5, dome wrote: >> >> Dear Massimo >> >> The new windows execu

[web2py] Re: web2py 2.15.4 is OUT

2017-09-03 Thread Massimo Di Pierro
very strange. Looking into this. On Saturday, 2 September 2017 11:33:00 UTC-5, dome wrote: > > Dear Massimo > > The new windows executable > > 2.15.4-stable+timestamp.2017.09.02.04.02.22 ( > LGPLv3 License >

[web2py] web2py book links and Dropbox

2017-09-03 Thread Massimo Di Pierro
Dear Web2py users, the link to the book is broken and you can find the new (temporary) link to the book here: https://www.dropbox.com/s/fuik35ayg686de3/web2py_manual_5th.pdf?dl=0 One the one side there is an easy fix to a broken link, replace all references to the new URL. Yet the problem is

[web2py] Re: Web2py + PhoneGap + Cordova (Mobile Developer)

2017-09-02 Thread Massimo Di Pierro
I am very much interested in this. Can you tell us more about your goals. Also, can you email me privately? On Saturday, 2 September 2017 01:03:20 UTC-5, Junior Phanter wrote: > > Hi guys... > I'm starting a project (web2py plugin) to help in the development of > mobile applications with web2py

[web2py] Re: mercurial

2017-09-01 Thread Massimo Di Pierro
. On Thursday, 31 August 2017 21:06:25 UTC-5, Dave S wrote: > > > > On Thursday, August 31, 2017 at 3:26:43 PM UTC-7, Massimo Di Pierro wrote: >> >> I think we should drop mercurial support and move to git consistently. >> > > Perhaps drop all VCS built-ins, and let the r

[web2py] Re: Best practice regarding applications

2017-09-01 Thread Massimo Di Pierro
It is fine to have one web2py and as many domains as you need. It should not affect performance provided you take advantage of the cores you have. That means you want to make sure you use nginx+uwsgi or gevent or gunicorn and have about one process per core. On Friday, 1 September 2017

[web2py] web2py 2.15.4 is OUT

2017-09-01 Thread Massimo Di Pierro
Includes a few bug-fixes (thanks to Anthony and Leonel in particular) and it is tracking the latest python (thanks Giovanni). Please report any outstanding problem so we can continue make web2py better. Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: mercurial

2017-08-31 Thread Massimo Di Pierro
I think we should drop mercurial support and move to git consistently. On Wednesday, 30 August 2017 06:21:13 UTC-5, mweissen wrote: > > I want to try the admin versioning. > mercurial is installed, hg --version shows 2.8.2 > > And a click on versioning gives "Sorry, could not find mercurial

[web2py] Re: Link to 2.15.3 downloads 2.15.2

2017-08-31 Thread Massimo Di Pierro
very strange. Will repush a new version. May fix this. let me know if problem persists after tomorrow. On Thursday, 31 August 2017 04:17:33 UTC-5, icodk wrote: > > On http://www.web2py.com/ there is a link to the download area: > 2.15.3-stable+timestamp.2017.08.07.12.51.45 ( >

[web2py] Re: Small correction to the manual

2017-08-31 Thread Massimo Di Pierro
good catch. Thanks. Can you try submit a patch to the book in git? On Wednesday, 30 August 2017 09:57:04 UTC-5, Paul Furber wrote: > > In this section of the manual: > http://www.web2py.com/books/default/chapter/29/10/services#parse_as_rest--experimental- > > There is a paragraph explaining how

[web2py] Re: Ingres with web2py

2017-08-31 Thread Massimo Di Pierro
Honestly. Support for ingres was added long ago and it did work. then pydal was rewritten to be more modular and I do not now believe anybody has tested ingres since that rewrite. If you want to help we can setup chat time and run some tests together and see whether there is any problem.

[web2py] Re: Two database join query

2017-08-31 Thread Massimo Di Pierro
This is logically impossible. The role of a database it to store data and execute queries about the local data. If you have two, which one should execute the query? Each one of them can only search local data. databases do not talk to each other. The only solution is not to do it in a query

Re: [web2py] Re: how to create pdf report in web2py???

2017-08-31 Thread Massimo Di Pierro
Nice! On Saturday, 26 August 2017 08:19:30 UTC-5, Alex wrote: > > We created a report tool since creating pdf reports in a web application > is a common problem and none of the existing solutions were optimal for us. > We needed something that is easy to integrate, easy to use (to design the >

[web2py] Re: AttributeError: 'SQLite' object has no attribute 'file_open'

2017-08-31 Thread Massimo Di Pierro
leusercontent.com/-HVkJkUDVqYs/WaUpZlVmP3I/Crc/A-cvkZQcRw4YE3ANPQbwPAbJBjzvLrVmACLcBGAs/s1600/sqlite_file_open_error.jpg> > > > > > > > > > On Sunday, August 13, 2017 at 2:40:08 AM UTC+5:30, Massimo Di Pierro wrote: >> >> Committed c995fd7 that shou

[web2py] Re: Rocket logs and server crash

2017-08-31 Thread Massimo Di Pierro
Can you tell us more about your setup? On Monday, 28 August 2017 13:54:05 UTC-5, Dave S wrote: > > I came in to a message from UptimeRobot that my server was down (4:20 am > mytime). So I check the logs ... > > The httpserver.log file ends at 4:02, with the last successful UptimeRobot > check.

[web2py] Re: Is it posible to fallback to static files when a controller is not found?

2017-08-31 Thread Massimo Di Pierro
routes_out is used when mapping a URL('controller','function') into an actual url. It is called reversed routing in other frameworks. On Sunday, 27 August 2017 17:49:47 UTC-5, Alfonso Serra wrote: > > Simpler and better approach: > > routes_in = ( > # do not reroute admin unless you want to

[web2py] Re: easy deploy on OpenShift

2017-08-23 Thread Massimo Di Pierro
Thanks Manuele, can I ask for a patch to the examples app that links to your page? On Tuesday, 22 August 2017 04:02:21 UTC-5, Manuele wrote: > > Dear web2py users, > > I'd like to submit to your attention this github project: > > https://github.com/manuelep/openshift_web2py > > it's a fork

Re: [web2py] Re: web2py with js framework

2017-08-23 Thread Massimo Di Pierro
m>: > >> @Massimo and @All concerned >> Uploaded <https://github.com/valq7711/rapydml_cmp> to github with short >> manual and examples. >> Discussion is welcome! >> >> >> On Wednesday, August 16, 2017 at 6:00:36 AM UTC+3, Massimo D

[web2py] Re: web2py with js framework

2017-08-15 Thread Massimo Di Pierro
I want to know more. On Tuesday, 15 August 2017 18:40:57 UTC-5, Val K wrote: > > > Considering the number of views, this issue is quite exciting. > > Here is my experience. I use RapydML and RapydScript to generate > Vue-components. > > I wrote brute-force parser + made some hacks of

[web2py] Re: Admin UI - Error ticket less information in the latest web2py releases

2017-08-15 Thread Massimo Di Pierro
very weird. Can you open a ticket about this? On Tuesday, 15 August 2017 10:19:42 UTC-5, Paolo Caruccio wrote: > > Hello everyone. > > In a view, I have a trivial NameError: name 'fattura' is not defined due to > > {{for ft in fatture:}} > {{=fattura.id}} > {{pass}} > > But the Error Ticket

[web2py] Re: Weird problems generating menu from database

2017-08-15 Thread Massimo Di Pierro
Replace: response.menu = cache.ram('menu', lambda:build_menu(), None) # to cache it! with submenu = cache.ram('menu', lambda:build_menu(), None) # to cache it! response.menu =[('Main', False, URL('default', 'index'), submenu] On Monday, 14 August 2017 02:50:09 UTC-5, Вячеслав Анатольевич

[web2py] Re: keyError : ‘fields’

2017-08-12 Thread Massimo Di Pierro
Thanks. Fixed in trunk. On Thursday, 10 August 2017 15:02:27 UTC-5, Lazaro Aulan wrote: > > Hello everyone! > > We are running a small application in web2py 2.14.6 > > Checking the application with 2.15.3 we got a error on > > web2py-2.15.3/gluon/packages/dal/pydal/objects.py in line 2946, in

[web2py] Re: AttributeError: 'SQLite' object has no attribute 'file_open'

2017-08-12 Thread Massimo Di Pierro
t;, line 522, > in import_table_definitions > tfile = self._adapter.file_open(filename, 'r') > AttributeError: 'PostgrePsyco' object has no attribute 'file_open' > > > > Meanwhile, I'll check if there is an opened issue about this. > Let me know if there is anything I can do to hel

[web2py] Re: Problem with Grid Exporter since upgrade from 2.14.6 to 2.15.2 / 2.15.3

2017-08-12 Thread Massimo Di Pierro
I opened an issue: https://github.com/web2py/web2py/issues/1733 will be taken care of asap. On Monday, 7 August 2017 19:08:38 UTC-5, Simon Riek wrote: > > Since updating from 2.14.6 to 2.15.2 (and also 2.15.3 released just > moments ago) I have some problems with the default ExportClasses in >

[web2py] web2py 2.15.3 is OUT

2017-08-07 Thread Massimo Di Pierro
Contains lots of small fixes. Many thanks to Leonel for taking care of many urgent issues in a hurry. \ Massimo -- 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: paired fields in web2py

2017-08-07 Thread Massimo Di Pierro
You can use SQLFORM.factory but I recommend something like vue, ractive, or angular. In in the end it makes things simpler. On Monday, 7 August 2017 01:01:05 UTC-5, Mumtoz Dalimov wrote: > > Thanks a lot, Massimo. > I understood the structure of the model. > > Any ideas how to make convenient

[web2py] Re: Weird problems generating menu from database

2017-08-07 Thread Massimo Di Pierro
So I think... db = DAL('sqlite://storage.sqlite') db.define_table('map',Field('menu1'),Field('menu2'),Field('mnm_name'),Field( 'link')) import collections def build_menu(): m1, m2 = [], [] # to preserve orders m =

[web2py] Re: Error in appadmin (database admin) on python 3

2017-08-07 Thread Massimo Di Pierro
please open a ticket in web2py or pydal, I can fix this in either place. On Sunday, 6 August 2017 10:07:40 UTC-5, Kirill Shatalaev wrote: > > Hello, when using python3 and database admin, I got this error: > > name 'unicode' is not defined > > You need to click on any table name (for example, >

[web2py] Re: admin password in web2py docker not correct

2017-08-07 Thread Massimo Di Pierro
I think your first proposed fix is better. the change in gluon/main.py should not be needed. It should not be completely impossible to have a " " in a password. On Saturday, 5 August 2017 11:44:46 UTC-5, JaapP wrote: > > Hi, > > Hope to save someone with the same problem some time: > > i

[web2py] Re: Unable to start web2py 2.15.2 with ssl

2017-08-07 Thread Massimo Di Pierro
Included the fix in 2.15.3 but please check it in case I got it wrong. On Friday, 4 August 2017 11:18:45 UTC-5, José Leite wrote: > > Thanks, just submitted the issue. > > sexta-feira, 4 de Agosto de 2017 às 16:58:14 UTC+1, Leonel Câmara escreveu: >> >> Still, probably a bug if it still doesn't

[web2py] Re: MS-SQL DAL Problem ( connecting is ok )

2017-08-07 Thread Massimo Di Pierro
t 6:18:58 PM UTC+3, Massimo Di Pierro wrote: >> >> I committed a fix to pysql just now. Can you check it fixes the problem >> for you? >> >> On Thursday, 3 August 2017 16:57:45 UTC-5, Razvan Cristian wrote: >>> >>> >>> Hello all! >>&g

Re: [web2py] book help

2017-08-04 Thread Massimo Di Pierro
017 11:34 AM, "Massimo Di Pierro" <massimo.dipie...@gmail.com> > wrote: > >> Can I ask for some help in editing the book. specifically: >> >> 1) describe {{=ASSIGNJS(js_var = python_var)}} >> >> 2) new syntax to store .table files in DB itself instead o

[web2py] book help

2017-08-04 Thread Massimo Di Pierro
Can I ask for some help in editing the book. specifically: 1) describe {{=ASSIGNJS(js_var = python_var)}} 2) new syntax to store .table files in DB itself instead of in the filesystem (works with any DB) from gluon import DAL, Field from gluon.dal import InDBMigrator db =

[web2py] Re: paired fields in web2py

2017-08-04 Thread Massimo Di Pierro
I would do db.define_table('customer',Field('name')) db.define_table('product',Field('name')) db.define_table('invoice',Field('customer','reference customer')) db.define_table('invoice_item',Field('invoice','reference invoice'),Field(product','reference product'),Field('quantity','integer'))

[web2py] Re: Error with Reading ListReferences in web2py 2.15.2 from database

2017-08-04 Thread Massimo Di Pierro
Yes this is correct. The other syntax worked by accident. On Friday, 4 August 2017 10:03:04 UTC-5, José Leite wrote: > > I changed the Syntax to: > > db.intro_lifestyles.tourism_segment_id.contains(segment.id) > > and it is now working. > > Thanks a lot that would be a solution too... > >

[web2py] Re: MS-SQL DAL Problem ( connecting is ok )

2017-08-04 Thread Massimo Di Pierro
I committed a fix to pysql just now. Can you check it fixes the problem for you? On Thursday, 3 August 2017 16:57:45 UTC-5, Razvan Cristian wrote: > > > Hello all! > > I am in the process of learning web2py. I downloaded the binaries and the > sources for windows and give it a run but i

[web2py] Re: Weird problems generating menu from database

2017-08-04 Thread Massimo Di Pierro
Yes. It is possible but I am a little confused by your model to be able to provide an example that works for you. Can you please provide your model again an example of data that should comprise the menu? Notice what you seek is done here:

Re: [web2py] Datatables Query String Parsing

2017-08-04 Thread Massimo Di Pierro
I also think the grid is obsolete and its code is ugly. The concept of pagination is old. I think it is much better to have an api and a [more] button that adds item at the bottom, until a new search is done. I will post a vue.js example of that as soon as I can. On Tuesday, 1 August 2017

[web2py] Re: SQLFORM.grid search type error reduce()

2017-08-04 Thread Massimo Di Pierro
Just fixed in trunk. Can you please help test the fix? On Tuesday, 1 August 2017 03:46:13 UTC-5, Paul Ellis wrote: > > I am getting this error only when searching the auth_membership table > > I have put in a basic 'appadmin' in my webapp. I call it 'tooladmin' to > differentiate from the built

<    3   4   5   6   7   8   9   10   11   12   >