[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: Communication error

2017-08-15 Thread Leonel Câmara
What happened before this started? -- 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

[web2py] Re: web2py with js framework

2017-08-15 Thread Val K
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 RapydML-compiler so, as exhaust I receive single js-file with embeded template as html-string.

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

2017-08-15 Thread Paul Ellis
ok no more errors. If I search for a name (John) for example in the table i get everything, Or for his ID (11) I get everything. I realise this is a join table (Many to Many) so it's no big deal but the search here is not very useful. I will need to implement special grids for these situations.

[web2py] Communication error

2017-08-15 Thread Artem
Hi! Sos! Communication error occurred permanently . Admin interface running very slow . ../admin/errors and app/errors are empty . How to define/fix the issue ? 2.15.3-stable+timestamp.2017.08.07.12.51.45 (Running on Rocket 1.2.6, Python 2.7.3) -- Resources: - http://web2py.com -

Re: [web2py] Re: web2py 2.15.3 is OUT

2017-08-15 Thread 黄祥
in 2.15.3, sometimes an error occured saying there is no app_name/languages/default.py solution : copy languages/default.py from 2.14.x version question : is the file remove for a purpose ? checked on github, there is no file in welcome/languages/default.py thanks and best regards, stifan --

[web2py] Re: have view, still getting generic

2017-08-15 Thread Dave S
On Tuesday, August 15, 2017 at 1:26:41 PM UTC-7, Jim S wrote: > > If you're text above is spelled correctly addsegement.html has a typo. > Should be addsegment.html based on the function number you specified. > > But, I assuming that is just a typo in the post. > :-) -- but worth triple

[web2py] Re: have view, still getting generic

2017-08-15 Thread Jim S
If you're text above is spelled correctly addsegement.html has a typo. Should be addsegment.html based on the function number you specified. But, I assuming that is just a typo in the post. Can you post the code in question? -Jim On Tuesday, August 15, 2017 at 2:40:01 PM UTC-5, Dave S

[web2py] Re: How to install NLTK?

2017-08-15 Thread Leonel Câmara
Just install it on your system python or virtual env. Instructions: http://www.nltk.org/install.html -- 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] have view, still getting generic

2017-08-15 Thread Dave S
On one of my pet projects, I created a view (.html) for my default/index function, and it works fine. For my default/addsegment function (which index redirects to if the form was accepted) I initially used the generic view, but then I copied index.html to addsegement.html -- but I am still

Re: [web2py] Current version: 2.15.3-stable+timestamp.2017.08.07.12.51.45 (LGPLv3 License) download link wrong.

2017-08-15 Thread Martin Weissenboeck
Try https://mdipierro.pythonanywhere.com/examples/static/web2py_win.zip Regards Martuin 2017-08-15 10:21 GMT+02:00 Halili Celik : > When I downloaded above link for windows, the web2py version is still ' > 2.15.2-stable+timestamp.2017.07.19.12.18.41'. > > -- > Resources:

Re: [web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Anthony
On Tuesday, August 15, 2017 at 7:49:09 AM UTC-4, Rahul wrote: > > Hi Anthony, > Thanks for getting back. No changes were made that would break > the system so badly. > And although today I did copy the single project on the same machine but > with a newly setup web2py 2.15.3. > I

[web2py] How to install NLTK?

2017-08-15 Thread Fabiano Almeida
Hi all, How to install NLTK on web2py? Thanks, Fabiano. -- 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

[web2py] Re: Changes with Postgis API with 2.15.2 (st_as_geojson() not working anymore)??

2017-08-15 Thread Leonel Câmara
I submitted a pull request with a fix if you want you can apply the changes locally to fix your problem: https://github.com/web2py/pydal/pull/489 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
I send a PR to web2py book to include the Gist in Upgrading section... On Tue, Aug 15, 2017 at 12:49 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Here : > > https://gist.github.com/BuhtigithuB/7d2f50203145542e0bdedb731be8a152 > > On Tue, Aug 15, 2017 at 12:18 PM, Richard Vézina < >

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
Here : https://gist.github.com/BuhtigithuB/7d2f50203145542e0bdedb731be8a152 On Tue, Aug 15, 2017 at 12:18 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Yes all these files from welcome should be updated... Before you must make > a backup of your app just to make sure it don't break

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
Yes all these files from welcome should be updated... Before you must make a backup of your app just to make sure it don't break anything... Richard On Tue, Aug 15, 2017 at 11:24 AM, Martin Weissenboeck wrote: > Did you mean ... ? > > Those files includes : > > view*s*/ > >

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
Did you mean ... ? Those files includes : view*s*/ appadmin.html generic.ics generic.load generic.rss layout.html generic.json generic.map generic.xml web2py_ajax.html generic.html generic.jsonp generic.pdf controller/ appadmin.py static/ css/* images/* js/* You can do this like that :

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

2017-08-15 Thread Paolo Caruccio
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 returned by web2py is different depending on the development environment. *Case 1 (best)* SO: windows 8 Web2py: Version

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
web2py does not upgrade any file in your applications. Some important parts of the framework are not part of the libraries, but part of the Welcome app. New apps will inherit these framework changes, but not existing apps. You need to do copy or merge changes manually. Sometimes this is necessary

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
There is mention of it in the book : http://web2py.com/books/default/chapter/29/14/other-recipes?search=upgrade#Upgrading On Tue, Aug 15, 2017 at 10:54 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Yes, I consider creating a gist too... > > Richard > > On Tue, Aug 15, 2017 at 10:52

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
Yes, I consider creating a gist too... Richard On Tue, Aug 15, 2017 at 10:52 AM, Martin Weissenboeck wrote: > Thank you - should be mentioned in the book. > > 2017-08-15 16:44 GMT+02:00 Richard Vézina : > >> Always the same issue... I would

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
Thank you - should be mentioned in the book. 2017-08-15 16:44 GMT+02:00 Richard Vézina : > Always the same issue... I would remove this update button to me... Whe > you update web2py you need to update many web2py reserved files in your app > that the web2py update

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Richard Vézina
Always the same issue... I would remove this update button to me... Whe you update web2py you need to update many web2py reserved files in your app that the web2py update don't do for you... Those files includes : view/ appadmin.html generic.ics generic.load generic.rss layout.html generic.json

{Disarmed} [web2py] Re: custom filter in grid

2017-08-15 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, I will go with this. Greetings. El 14/08/17 a las 11:34, Leonel Câmara escribió: Here's one way to do it. Note that when I start having this kind of problems I usually stop using the grid and make a custom solution. In the grid, the searchable argument, can be a function. In

[web2py] Re: Scheduler in systemd environment (running very long tasks)

2017-08-15 Thread Mirek Zvolský
Hi Zbigniew and Niphlod. I have same/similar traceback when the task will timeout, in my case in 2h: File "/home/www-data/web2py/gluon/scheduler.py", line 720, in signal.signal(signal.SIGTERM, lambda signum, stack_frame: sys.exit(1)) SystemExit: 1 scheduler_run.stop_time is

Re: [web2py] pycharm and web2py - setup project

2017-08-15 Thread Richard Vézina
Ok, I confirm, I did have to install pyDAL too in order to allow autocompletion of db.define_table... I use to test in controller and it was working with request... Not sure why... I guess this is cause by the fact that pyDAL is a external product since sometimes and PyCharm didn't address this

Re: [web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Rahul Dhakate
Hi Jim, I have overridden a lot of default web2py stuff and used my own instead. Just wanted to have it work my way but I wouldn't mind using web2py decorators in future projects. Yes I am looking for such patterns but so far there isn't anything I found causing this. Thanks, Rahul.

Re: [web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Jim Steil
I don't know if it has anything to do with the problem, but am curious why you have your checksession() function and don't use the web2py decorators for ensuring a user is logged in. http://web2py.com/books/default/chapter/29/09/access-control#Decorators Is there a common use pattern in the 20+

Re: [web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Rahul Dhakate
Hi Anthony, Thanks for getting back. No changes were made that would break the system so badly. And although today I did copy the single project on the same machine but with a newly setup web2py 2.15.3. I will try using this project on another machine by configuring it from scratch. Does

[web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Anthony
If you've removed the routes files and restarted the server and still have problems, it's not clear what would be causing some but not all of your URLs to stop working, assuming you've made no other changes to the system. You may need to set up everything from scratch. Do you have another

[web2py] Re: Changes with Postgis API with 2.15.2 (st_as_geojson() not working anymore)??

2017-08-15 Thread Leonel Câmara
Please submit a bug on pydal this is a bug. -- 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

[web2py] Re: python 3 web2py2.15.3 url lib has no get proxies

2017-08-15 Thread Leonel Câmara
Please submit an issue in github so we can track this, we need to use urllib.request.getproxies() for python 3. -- 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: posibility to disable the mobile admin interface

2017-08-15 Thread Paolo Caruccio
Why is it not compatible? Have you already asked for help from this group? Il giorno martedì 15 agosto 2017 09:41:23 UTC+2, Vic Ding ha scritto: > > Thanks, Paolo. I'll try this after I revert to old version. The component > I use to mimic excel for user input is not compatible with new version

[web2py] Re: Getting 404 NOT FOUND error when accessing a few pages of my app.

2017-08-15 Thread Rahul
Hi Anthony, Jim, The application is not compiled. I was trying to use routes files attached (applevel and web2py level) which I removed completely and still the error persists. They are not even in the application directory. I do think that before using the routes the application was

[web2py] Current version: 2.15.3-stable+timestamp.2017.08.07.12.51.45 (LGPLv3 License) download link wrong.

2017-08-15 Thread Halili Celik
When I downloaded above link for windows, the web2py version is still ' 2.15.2-stable+timestamp.2017.07.19.12.18.41'. -- 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] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
I have tried to use the automatic update to 2.15.3 The following problem occurs: Internal error ... Ticked issued:... But appadmin is corrupted, so it is not possible to read the ticket in a simple way. *A restart of web2py solves the problem.* *Maybe there should be an extra hint to restart

[web2py] Re: 'DAL' object has no attribute ""table_name""

2017-08-15 Thread Halili Celik
Correction: It should be 'TSV (Spreadsheets', not 'csv'. 15 Ağustos 2017 Salı 00:24:44 UTC+3 tarihinde Halili Celik yazdı: > > 1. web2py internet download link is wrong for windows platform. The link > points to old version: 2.15.2-stable+timestamp.2017.07.19.12.18.41 > > 2. With the version:

[web2py] Re: posibility to disable the mobile admin interface

2017-08-15 Thread Vic Ding
Thanks, Paolo. I'll try this after I revert to old version. The component I use to mimic excel for user input is not compatible with new version :( On Tuesday, August 15, 2017 at 12:40:29 AM UTC+2, Paolo Caruccio wrote: > > My known way. > > In the

[web2py] python 3 web2py2.15.3 url lib has no get proxies

2017-08-15 Thread Ben Lawrence
*HI* *trying to **use python 3 because I am having a lot of ascii decode issues...* *python 2.17.12 can run the scheduler no problem, but not python 3.5* *I was wondering how can I install getproxies attribute into the urllib module ?* *ben@x1*:*/home/www-data/web2py*$ python3