[web2py] Re: [py4web] - how to disable some auth actions?

2020-03-28 Thread Paolo Caruccio
not need. Translated with www.DeepL.com/Translator (free version) Il giorno sabato 28 marzo 2020 20:30:48 UTC+1, Massimo Di Pierro ha scritto: > > not possible yet. I can implement it easily but I would like to understand > some use cases. > > On Saturday, 28 March 2020 10:12:

[web2py] [py4web] - how to disable some ayth actions?

2020-03-28 Thread Paolo Caruccio
In py4web is there any way to disable some auth actions? I can't find anything in the code about this. In web2py this is possible via auth.settings.action_disabled For example: auth.settings.action_disabled=['register'] prevents the "register" action from working. Tank you. -- Resources: -

[web2py] is field representation changed from web2py 2.14.6?

2018-10-27 Thread Paolo Caruccio
with this model (very simplified) db.define_table('table1', Field('first_field' ), format='%(first_field)s' ) db.define_table('table2', Field('field_one' ),

[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

Re: [web2py] Re: please help us test trunk web2py

2018-03-18 Thread Paolo Valleri
@nbush would you open an issue on https://github.com/web2py/web2py/issues. It seems that languages files were wrongly updated into decoded messages. see https://github.com/web2py/web2py/commit/9263f8c4c3be7dd3ac0d1e9948c23b52f10db0d0#diff-59abf7aaebbac65b540eaebf36870ec6 Paolo 2018-03-11 20:45

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-15 Thread Paolo Caruccio
Leonel's suggestion worked but I had to set the key within headers dictionary and column name within column lists of SQLTABLE to '''GROUP_CONCAT("RISCHI"."rischio", \', \')''' However, it seems to me that pyDal accepts SQL strings but it is SQLTABLE that doesn't handle them as before. So I

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-14 Thread Paolo Caruccio
configurations. Il giorno giovedì 15 marzo 2018 00:00:01 UTC+1, Dave S ha scritto: > > > > On Wednesday, March 14, 2018 at 3:32:46 PM UTC-7, Paolo Caruccio wrote: >> >> The relevant code that generates the issue is: >> > [...] > >> The traceb

[web2py] SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-14 Thread Paolo Caruccio
The relevant code that generates the issue is: rischi_della_mansione = "GROUP_CONCAT(rischio, ', ')" l = [db.RISCHI_MANSIONE.on( (db.RISCHI_MANSIONE.mansione_ID==db.MANSIONE.id)), db.RISCHI.on( (db.RISCHI.id==db.RISCHI_MANSIONE.rischio_ID)) ]

[web2py] Re: please help us test trunk web2py

2018-03-11 Thread Paolo
@nbush, could you post a code snippet to reproduce the error? Which web2py version have you tested? On Wednesday, March 7, 2018 at 11:31:14 PM UTC+1, Nbush wrote: > > Pluralizaiton error. (test on python 2.7.13) > > 'ascii' codec can't decode byte > 0xd0 in position 0: ordinal not in

[web2py] Re: mobile menu not working?

2018-01-26 Thread Paolo Caruccio
Please try the solution in https://github.com/web2py/web2py/issues/1828 Regards. Il giorno venerdì 26 gennaio 2018 18:18:18 UTC+1, Yi Liu ha scritto: > > Dear all, > > I have latest web2py running at trialert.com > > Both my barebone app and welcome app at trialert.com/welcome have problem >

[web2py] Re: Problem w/ v2.16.1 & python3 & rest api

2018-01-07 Thread Paolo
I've just checked master branch and in the browser it works correctly. Could you try? On Friday, January 5, 2018 at 12:48:21 PM UTC+1, Scott Hunter wrote: > > I had to use a fresh copy of web2py in order to try it with python2 > (otherwise I get an error complaining about unsupported pickle

[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'

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread Paolo Caruccio
Regarding the collapsed navbar issue, in the web2py 2.16.1 welcome layout.html page is missing the id on the navbar-collapse Il giorno sabato 23 dicembre 2017 14:12:46 UTC+1, lucas ha scritto: > > as I reported when the screen isn't wide enough, it will default to the > pull down button,

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread Paolo Caruccio
In the web2py 2.16.1 welcome layout.html page, in order to move to the right the login dropdown, you could apply the bootstrap 4 class mr-auto to the form in navbar and add the class dropdown-menu-right to the dropdown Il giorno sabato 23 dicembre 2017 14:12:46 UTC+1, lucas ha scritto: >

[web2py] Re: image alt text on hover

2017-12-23 Thread Paolo Caruccio
use the "title attribute" More info about html "title" https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title Il giorno sabato 23 dicembre 2017 11:21:50 UTC+1, Dave S ha scritto: > > I'd like to

[web2py] Re: menu li > a padding in case of button

2017-12-05 Thread Paolo Caruccio
Maybe .web2py-menu li:nth-of-type(2) {padding:0;} Il giorno martedì 5 dicembre 2017 09:35:32 UTC+1, Annet ha scritto: > > Hi Paolo, > > Thanks for your reply. The problem is that the padding is on the item > not the btn one. > My menu is rendered as follows: > >

Re: [web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2017-12-05 Thread Paolo Valleri
Anthony, is it possible to add py3 to the tests suite (for both standard and optimized apps) ? Paolo 2016-11-22 14:55 GMT+01:00 Mark Graves <mgrave...@gmail.com>: > That is truly strange. Seems to be a distinct confound. > > Greatly appreciated work. > > > > On T

[web2py] Re: menu li > a padding in case of button

2017-12-03 Thread Paolo Caruccio
To remove it, you could try following css rules in an external css file loaded after bootstrap css files .web2py-menu span.btn{padding:0;} Il giorno sabato 2 dicembre 2017 18:47:55 UTC+1, Annet ha scritto: > > I have the following menu: > > response.application_menu = [ >

[web2py] Re: Formatting numbers in view

2017-10-30 Thread Paolo Caruccio
If it is feasible for you, you could use *Intl.NumberFormat* ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) javascript Internationalization API. Il giorno lunedì 30 ottobre 2017 18:59:27 UTC+1, Gualter Portella ha scritto: > > Dear all, > > I

[web2py] Re: Alias column names (akin to AS clause) in db select

2017-08-28 Thread Paolo Caruccio
e2.blah) If you want alias fields in a query without joins you could write rows = db(db.Table2.id>0).select('bar AS blah') Il giorno lunedì 28 agosto 2017 08:50:20 UTC+2, Brendan Barnwell ha scritto: > > On Monday, July 31, 2017 at 1:25:31 PM UTC-7, Paolo Caruccio wrote: >

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

2017-08-16 Thread Paolo Caruccio
ticket open https://github.com/web2py/web2py/issues/1740 Il giorno mercoledì 16 agosto 2017 04:58:17 UTC+2, Massimo Di Pierro ha scritto: > > very weird. Can you open a ticket about this? > > On Tuesday, 15 August 2017 10:19:42 UTC-5, Paolo Caruccio wrote: >> >> Hello e

[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

[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 ne

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

2017-08-14 Thread Paolo Caruccio
My known way. In the "web2py/applications/admin/controllers/default.py" file at line nr.3 set EXPERIMENTAL_STUFF to False You must apply the above change every time you update web2py. Il giorno lunedì 14 agosto 2017 12:50:39 UTC+2, Vic Ding ha scritto: > > I know this is pretty old post, but

[web2py] Re: Change value of select

2017-08-12 Thread Paolo Caruccio
Have you tried with javascript? If the selectbox has an id should be simple accomplish your goal. For example: document.getElementById('listofvalues').value='3'; sets as selected the option with value = '3' in the following selectbox. Value 11 Value 22 Value 33

[web2py] Re: multiple form in 1 page using tab

2017-08-12 Thread Paolo Caruccio
Maybe the issue is due to class 'active' in the view. To be honest, I did not fully understand your question but the following code - for example - should show the tab with the submitted form. *controllers/default.py* def report(): query = (db.table_0.id > 0) #redirect_url_0 =

[web2py] Re: Can't load form using {{=form}} only by {{=LOAD('default','def')}} or submit the form.

2017-08-06 Thread Paolo Caruccio
Do you have a file named "order.load" or "order.html" in views/default folder? LOAD helper needs a view that does not extend the layout. Sample of content default order.load (please note the absence of {{extend 'layout.html'}}): {{=order}} More on LOAD helper in

[web2py] Re: Alias column names (akin to AS clause) in db select

2017-07-31 Thread Paolo Caruccio
Maybe the web2py book could help you: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=with_alias#Self-Reference-and-aliases Il giorno lunedì 31 luglio 2017 00:19:11 UTC+2, Brendan Barnwell ha scritto: > > On Monday, May 29, 2017 at 11:30:53 PM UTC-7,

Re: [web2py] web2py 2.15.1 is OUT

2017-07-11 Thread Paolo
There is a bit of confusion regarding release version, which one is correct 2.15.* or 2.16.*? The main features are python3/pypy3 support, performance improvements, few core fixes On Tuesday, July 11, 2017 at 2:13:52 PM UTC+2, Massimo Di Pierro wrote: > > check. I am sure there will be a

[web2py] Re: web2py 2.15.0b1

2017-07-10 Thread Paolo Valleri
Massimo, regarding minification see https://github.com/web2py/web2py/pull/1658, hopefully it fixed the reported issue. On Monday, July 10, 2017 at 10:28:44 AM UTC+2, Massimo Di Pierro wrote: > > Thanks for reporting these issues. > > I think except for minification they have all been resolved.

Re: [web2py] db structure graphical analysis tool

2017-07-08 Thread Paolo Valleri
Hi Jurgis, web2py master has recently switched from pygraphviz to a js based solution. I would suggest you to adapt your change with current master branch and then publish a PR for an integration. Paolo On Friday, July 7, 2017 at 3:35:35 PM UTC+2, Ramos wrote: > > +1 good job > > 2

[web2py] Re: web2py 2.15.0b1

2017-07-06 Thread Paolo Valleri
Hi Stifan, regarding _before_insert open an issue on https://github.com/web2py/pydal with the example you posted for the other issues, open an issue on https://github.com/web2py/web2py Paolo On Thursday, July 6, 2017 at 2:20:25 AM UTC+2, 黄祥 wrote: > > tried to build from scratch with m

[web2py] Re: Semantic UI for SQLFROM.grid

2017-06-04 Thread Paolo Caruccio
Yes it's diffcult but not impossible. With CSS preprocessors, for example, we can write adaptive rules by extending a class defined in choiced css library to a HTML element generated by web2py having a different css class or a specific identifier. web2py, in my opinion, it's flexibile enough

[web2py] Re: How do I change the sqlform button location

2017-05-12 Thread Paolo Caruccio
For label within its related input, you could use placeholder HTML attribute. In order to accomplish this you could customize the field widget. For example, the widget for the password field of auth_user table could be db.auth_user.password.widget=lambda f, v:

Re: [web2py] Re: [REMEMBER_ME] Not working

2017-05-05 Thread Paolo Valleri
I've just tried welcome app with current master branch and 'remember me' worked well. Would you test it as well? Paolo 2017-05-05 11:32 GMT+02:00 <sunda.am...@gmail.com>: > Please help me > > > Le mercredi 3 mai 2017 17:14:10 UTC+2, Paolo Valleri a écrit : >> >>

[web2py] Re: [REMEMBER_ME] Not working

2017-05-03 Thread Paolo Valleri
which web2py version are you using? would you post the html of the 'remember me' input tag Paolo On Wednesday, May 3, 2017 at 10:31:23 AM UTC+2, sunda...@gmail.com wrote: > > Hello Anthony, > > Yeah but even if i took it off, it doesnt work at all ... or even when i > w

[web2py] Re: update_or_insert only returns id if created not updated

2017-04-19 Thread Paolo Valleri
Actually I don't know if pydal is supposed to be backward compatible. On Wednesday, April 19, 2017 at 1:04:45 AM UTC+2, Anthony wrote: > > On Tuesday, April 18, 2017 at 3:33:31 PM UTC-4, Paolo Valleri wrote: >> >> It should work. Try to open an issue on https://githu

[web2py] Re: update_or_insert only returns id if created not updated

2017-04-18 Thread Paolo Valleri
It should work. Try to open an issue on https://github.com/web2py/pydal or a pull request with the necessary change it could be something like, new_id = record[self._id.name] Paolo On Tuesday, April 18, 2017 at 12:58:22 PM UTC+2, Ramos wrote: > > why? > > https://github.com/web2p

[web2py] Re: delete record confirmation dialog

2017-04-18 Thread Paolo Valleri
/applications/welcome/static/js/web2py.js#L186 Depending on your use case you can either translate the sentence defined in web2py_ajax.html or add your custom logic in order to change the content of the w2p_ajax_confirm_message javascript variable. Paolo On Tuesday, April 18, 2017 at 6:00:21 PM UTC+2

Re: [web2py] Re: use memcache

2017-04-12 Thread Paolo Valleri
you have to clone your fork, which I guess is https://github.com/sugizo/web2py then follow the same steps, at the end, from the github website create a PR. Mind that your fork (https://github.com/sugizo/web2py) is really out of date, update it before everything else. Paolo 2017-04-12 12:40 GMT

Re: [web2py] Re: use memcache

2017-04-11 Thread Paolo Valleri
web2py/master with your branch Paolo 2017-04-12 2:28 GMT+02:00 黄祥 <steve.van.chris...@gmail.com>: > *whole traceback :* > > Traceback (most recent call last): > File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 227, in > restricted > exec cco

Re: [web2py] Re: use memcache

2017-04-11 Thread Paolo Valleri
Glad the change fixed the first issue, would you submit a PR https://github.com/web2py/web2py/pulls? Regarding the second error, post the whole traceback here Paolo 2017-04-11 0:11 GMT+02:00 黄祥 <steve.van.chris...@gmail.com>: > *change gluon/contrib/memcache/__init__.py

Re: [web2py] Re: use memcache

2017-04-10 Thread Paolo Valleri
Have you restarted web2py after the change? Paolo 2017-04-10 0:02 GMT+02:00 黄祥 <steve.van.chris...@gmail.com>: > after adding the code, still got the same error : AttributeError: > 'MemcacheClientObj' object has no attribute 'initialize' > *e.g.* > class MemcacheClientObj(

[web2py] Re: use memcache

2017-04-09 Thread Paolo Valleri
Regarding the first problem you posted. Try adding: def initialize(self): pass in https://github.com/web2py/web2py/blob/master/gluon/contrib/memcache/__init__.py#L22 Let us know. Paolo On Friday, April 7, 2017 at 12:29:14 AM UTC+2, 黄祥 wrote: > > Tried to learn about me

Re: [web2py] Re: web2py and python3

2017-04-03 Thread Paolo Valleri
The best is to test your apps with python3 and report any issues. After a test period, I agree regarding pushing a new release Paolo 2017-04-03 16:46 GMT+02:00 Richard Vézina <ml.richard.vez...@gmail.com>: > Glad to hear that Leonel... > > But could we have "official"

[web2py] Re: inner join taking too long

2017-03-26 Thread Paolo Valleri
Adding few print statements will give you some light. Mind that gluon.contrib.simplejson is no longer necessary (https://github.com/web2py/web2py/blob/master/gluon/contrib/simplejson.py), import json instead. Paolo On Monday, March 20, 2017 at 5:05:12 PM UTC+1, John Philip wrote: > &

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Paolo Caruccio
You could try with css. 1. assign to the component trigger a specific class for example "link_with_loader" A(IMG(_src=image), _href=URL('default', 'getit'), _class="link_with_loader", user_signature=True, cid=request.cid) 2. since web2py adds the "disabled" class to the component trigger

Re: [web2py] Re: web2py and python3

2017-02-02 Thread Paolo Valleri
In the last months few patches have been accepted in the current master branch, as a result web2py core components can be tested on py3 too. Few features are missing see https://github.com/web2py/web2py/issues/1353. Feel free to try and report/fix any new issue discovered. Paolo On Thursday

[web2py] Re: Customising Calendar widgets in Start Date and End date of SmartGrid

2017-01-16 Thread Paolo Caruccio
Below link should work yet. http://sourceforge.net/projects/jscalendar/ Within the file you'll find the refrence and other original resources about jscalendar 1.0 of

[web2py] Re: required=True

2016-12-28 Thread Paolo Caruccio
In addition to the Anthony's answer , if you want also experiment simple native client side validation for web form, you could customize the field widget Field('myfield', 'string', requires=IS_NOT_EMPTY(), widget=lambda f,v:

[web2py] Re: table headers with style

2016-12-08 Thread Paolo Caruccio
8 dicembre 2016 08:03:53 UTC+1, Dave S ha scritto: > > > > On Wednesday, December 7, 2016 at 3:02:10 PM UTC-8, Paolo Caruccio wrote: >> >> Below code should work with bootstrap and stupid.css >> >> >> .table.myeheaders th {padding-right:2em;} >

[web2py] Re: table headers with style

2016-12-07 Thread Paolo Caruccio
ercoledì 7 dicembre 2016 09:33:20 UTC+1, Dave S ha scritto: > > > > On Sunday, December 4, 2016 at 2:48:15 AM UTC-8, Paolo Caruccio wrote: >> >> The correct sintax for the css .class selector is >> >> .class { >> css declarations; >> } >>

[web2py] Re: [pydpdf] ('FPDF' object has no attribute 'write_html')

2016-12-07 Thread Paolo Valleri
see https://github.com/reingart/pyfpdf/blob/master/docs/reference/write_html.md for a detailed example for using write_html Paolo On Tuesday, December 6, 2016 at 10:23:46 PM UTC+1, Mamisoa Andriantafika wrote: > > Hi, > > Here is a simple controller. > > def test_

Re: [web2py] Re: switch to python 3

2016-12-06 Thread Paolo Valleri
What about https://gitlab.com/m2crypto/m2crypto/commits/python3 ? On Monday, December 5, 2016 at 9:57:19 PM UTC+1, Niphlod wrote: > > m2crypto port for py3 are available (although not strictly official). > The contrib module for x509 auth stands on it so, on py3, it MAY not work, > but it's

[web2py] Re: table headers with style

2016-12-04 Thread Paolo Caruccio
The correct sintax for the css .class selector is .class { css declarations; } so .myeheaders th { padding-right: 2em} ; should work. Il giorno domenica 4 dicembre 2016 05:32:55 UTC+1, Dave S ha scritto: > > I'm finding that SQLTABLE, though mostly well-behaved, doesn't properly >

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-12-02 Thread Paolo Caruccio
My previous answer was too short. I was in a hurry. So I want elaborate it more. Martin wrote to have an alignment problem between the label and the text that SQLFORM generates when the field is not writable. Web2py in this context gives to the label of not writable field the css class

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-12-01 Thread Paolo Caruccio
Try with label.readonly~div{padding:7px;} Il giorno lunedì 21 novembre 2016 16:42:54 UTC+1, Martin de Groot ha scritto: > > In a SQLForm all widget-controls of writable fields are nicely, correctly > vertically aligned with the preceding label. > > However, when one adds

[web2py] Re: Is web2py dying?

2016-11-18 Thread Paolo Valleri
Hi, On Thursday, November 17, 2016 at 9:00:38 PM UTC+1, AlighaThor wrote: > > Thanks for your quick reply. > > By the way, with 4 years of experience, why not start contributing too >> > > Exactly for that reason I asked this. I'm really thinking about request > being a contributor. I want to do

[web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-18 Thread Paolo Valleri
According to the benchmark records an important optimization concerns the session logic. The results are also good because the web2py version used during the benchmark already includes all encode/decode calls introduced for py3. Paolo On Friday, November 18, 2016 at 2:40:01 PM UTC+1, JorgeH

[web2py] Deploy to a VPS

2016-10-21 Thread Paolo Montrasio
I'm taking over a web2py project for a customer. I looked for the common way to deploy to production, read the guide of the web2py site and googled for solutions. They don't apply very well to my case so I'm looking for advice to start in the right way. The production server runs on a VPS.

[web2py] Re: How to cleanly pass FPDF output object to os Download/Save dialogue box

2016-10-17 Thread Paolo Valleri
's cleaner. Without setting the 'Content-disposition' the pdf will be opened in the browser. Paolo On Sunday, October 16, 2016 at 7:42:29 PM UTC+2, Peter wrote: > > > So this is better but I still need some direction... > > (thanks to Paul Rykiel's post > <https://groups.google.com

[web2py] Re: Help with App memory usage

2016-10-14 Thread Paolo Valleri
Which driver are you using for postgres? Are you using cache in models? Try to figure out if there are controllers using more memory than others. On Friday, October 14, 2016 at 4:03:20 AM UTC+2, Anthony wrote: > > That's a lot of code to review. You're probably going to have to do some >

Re: [web2py] Re: web3py status

2016-09-07 Thread Paolo Valleri
Current master branch passes almost all unittests on python 3.5. If anyone is interested in helping with the final steps, a checklist is here https://github.com/web2py/web2py/issues/1353#issue-159010482 On Tuesday, September 6, 2016 at 5:43:55 AM UTC+2, jjs0sbw wrote: > > I agree that a better

[web2py] Re: app slow on pythonanywhere

2016-09-03 Thread Paolo Valleri
Have you disabled migrations? Paolo On Saturday, September 3, 2016 at 7:01:39 PM UTC+2, Scott Hunter wrote: > > I have an app which runs *much* slower than expected on pythonanywhere. > > I enabled the profiler, and one thing stood out: on pythonanywhere, the > function the most

[web2py] web2py on android

2016-07-19 Thread Paolo Amboni
Is it possible to do something like that with web2py? Android apps with Python, Flask and a WebView (https://kivy.org/planet/2016/05/android-apps-with-python-flask-and-a-webview/) Thanks!! -- Resources: -

[web2py] Re: ajax return multiple javascript one at a time

2016-06-07 Thread Paolo Amboni
scritto: > > What do you see in the browser network panel (are both requests firing, > and if so, what are the responses?) and JS console (any errors reported)? > > On Sunday, June 5, 2016 at 7:26:57 AM UTC-4, Paolo Amboni wrote: >> >> I don't know if it is possible b

[web2py] ajax return multiple javascript one at a time

2016-06-05 Thread Paolo Amboni
I don't know if it is possible but: I need to query 4 different db with a single form input. Since each query may need some time to perform i want to show the the result of the first query as soon as it is available, and then move to the second query and so on. I tried calling multiple ajax

[web2py] Re: again on javascript chart

2016-05-12 Thread Paolo Amboni
ay, May 11, 2016 at 9:39:17 AM UTC-4, Paolo Amboni wrote: >> >> *Since it seems an hot topic:* >> >> witch js library works better with web2py - python - (pandas) to plot >> some nice charts? >> > > The question is really which works best with Python/Pandas (

[web2py] Re: Highcharts in web2py

2016-05-11 Thread Paolo Amboni
why did you choose Highcharts? I'm still searching the right library for web2py!! Il giorno mercoledì 11 maggio 2016 15:15:38 UTC+2, kecajk...@gmail.com ha scritto: > > Hi Guys, > > I was able to create simple graph by using highcharts.js ( > http://www.highcharts.com/) However since it's

[web2py] again on javascript chart

2016-05-11 Thread Paolo Amboni
*Since it seems an hot topic:* witch js library works better with web2py - python - (pandas) to plot some nice charts? which need less js coding? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: matplotlib passing parameters from the view

2016-05-06 Thread Paolo Amboni
framework? Il giorno giovedì 5 maggio 2016 10:11:45 UTC+2, Niphlod ha scritto: > > there's a problem in your syntax. > > it's usually URL('blabla', args=[], vars=dict()) > > while your code reports > > args=[..., dict=()] > > On Thursday, May 5, 2016 at 9:53:44 AM UTC+

[web2py] Re: matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
I stored the id in a session variable and it works fine!! But why the URL helper didn't send the args to the function? Il giorno giovedì 5 maggio 2016 09:36:32 UTC+2, Paolo Amboni ha scritto: > > I'm trying to build a single function (in a controller) that generate > different matplot

[web2py] matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
I'm trying to build a single function (in a controller) that generate different matplotlib graph.. So the function that generate the stream works fine: *def grafico*(title='title',xlab='x',ylab='y' data= ): fig=Figure() return stream.getvalue() the function that call

[web2py] Re: Background process

2016-04-27 Thread Paolo Amboni
I'm not sure if i get your question right, but try the Scheduler. I've done a project that retrieve light, humidity and temperature from an arduino and store in a sqlite db on the server and it works fine. You also don't need a real time clock on the arduino. Il giorno giovedì 14 aprile 2016

Re: [web2py] Multiple connections/ databases with same app

2016-03-13 Thread Paolo Caruccio
same issue. > > > On Mar 13, 2016, at 4:08 AM, Paolo Caruccio <paolo.ca...@gmail.com > > wrote: > > Try to replace dash ("-") with uderscore ("_") in the variable names i.e. > db_cats > > > Il giorno sabato 12 marzo 2016 15:10:33 UTC+1,

Re: [web2py] Multiple connections/ databases with same app

2016-03-13 Thread Paolo Caruccio
Try to replace dash ("-") with uderscore ("_") in the variable names i.e. db_cats Il giorno sabato 12 marzo 2016 15:10:33 UTC+1, Shayn Raney ha scritto: > > I would like to implement something like this to use two sqlite3 > databases. I've tried to create the following within a new model via

[web2py] Re: checkbox with label on the left side

2016-03-07 Thread Paolo Caruccio
In my sqlforms, I solved the issue with css. Prerequisite 1: formstyle = divs Prerequisite 2: you have to know the id of the field outer div i.e. that containing the div.w2p_fl and the div.w2p_fw Generally it is build as tablename_fieldname__row (for more on this subject

[web2py] download pandas dataframe

2016-02-19 Thread Paolo Amboni
I've a pandas dataframe that i want to download as a csv file. I know that i can output a dataframe to a csv file : dataframe.to_scv(path,sep) But how can a user download his generated file? Should i write it in a static directory, perhaps with the username prefix? Is there a way to generate a

[web2py] Re: web3py

2016-01-20 Thread Paolo Amboni
All option are good, the important is to have python 3 compatibility!! Il giorno giovedì 14 gennaio 2016 06:35:36 UTC+1, Massimo Di Pierro ha scritto: > > It is another experiment. > > It is a rewrite of some of the web2py modules and supports 90% of the > current web2py syntax at 2.5x the

[web2py] Re: How do I make my web2py app able to use the device hardwares like camera?

2016-01-20 Thread Paolo Amboni
For camera try opencv, it has a nice python library Il giorno domenica 17 gennaio 2016 18:05:50 UTC+1, henryj...@gmail.com ha scritto: > > also how to make it able to use some other apps on the device? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: How do I select and output multiple checkboxes

2016-01-18 Thread Paolo Caruccio
quick question Paolo, > > Have a tested this code? Because I tried with the same table and pasted > the code in web2py.css and it didn't do anything. The concept is right but > I believe may have an implementation error. Unless I am missing something. > > On Saturday, January

Re: [web2py] Re: How do I select and output multiple checkboxes

2016-01-16 Thread Paolo Caruccio
The issue could be simply solved by using css. For example by adding the below code in your css file: .web2py_checkboxeswidget.horizontal { display: -ms-flexbox; display: -webkit-flex; display: flex; }

[web2py] Re: geometry field /postgis/srid conversion

2016-01-09 Thread Paolo Valleri
Hi Pierre, try to define the table as follows db.define_table('geom', Field('loc','geometry(public, 2154, 2)')) By doing that you define the column *loc* with srid=2154. Notice that 'public' is the schema, and 2 is the dimension. Paolo On Thursday, January 7, 2016 at 7:21:40 PM

Re: [web2py] Re: geometry field /postgis/srid conversion

2016-01-09 Thread Paolo Valleri
--and-MS-Geo--experimental- Paolo 2016-01-09 15:17 GMT+01:00 Pierre <theognis0...@gmail.com>: > Thanks Paolo, > > this seem to work: > > db.define_table('geom', > Field('loc','geometry('',2154,2)')) > > I don't understand the role of the first argumen

Re: [web2py] Re: web2py and python3

2015-11-16 Thread Paolo Valleri
Just to understand what we are talking about, which are the main issues in porting web2py on python 3.x ? Paolo On Saturday, November 14, 2015 at 11:24:30 PM UTC+1, Ramos wrote: > > weppy looks like a short webp2y environment, however lacks some good > documentation like web2p

Re: [web2py] Re: web2py and python3

2015-11-16 Thread Paolo Valleri
The second making web2py "syntactically" compatible with python 3.x Who want to start? Paolo 2015-11-17 2:53 GMT+01:00 Richard Vézina <ml.richard.vez...@gmail.com>: > Here it goes : > > List of relevant posts : > > Most relevant: > https://groups.google.com/d/m

[web2py] Re: DAL returns string fields not as unicode strings

2015-11-14 Thread Paolo Valleri
) db.commit() for r in db(db.unicode_test).select(): print r.test, type(r.test) print db.unicode_test[1].test I got på Facebook på Facebook Paolo On Thursday, November 12, 2015 at 8:03:25 PM UTC+1, Dandelion Mine wrote: > > I tried it on 2.12.3-stable: > >>>

[web2py] Re: ajax need to return 4 values

2015-11-14 Thread Paolo Valleri
There isn't a solution out-of-the-box in web2py. I'd suggest returning a json with the 4 values, and then apply the result to the input fields Paolo On Saturday, November 14, 2015 at 1:50:56 PM UTC+1, lucas wrote: > > hello one and all, > > how do i run an ajax function under

[web2py] Re: Creating web apps with Web2py in Azure Web Apps

2015-11-13 Thread Paolo Valleri
we can start using github wiki for all things in script/* Paolo On Friday, November 13, 2015 at 9:09:12 AM UTC+1, Niphlod wrote: > > we're working towards REDUCING scripts/anything_for_deployment because > they quickly become unmaintained. > If we start to sc

[web2py] Re: postgis & web2py geo api

2015-11-13 Thread Paolo Valleri
have a look at http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?#PostGIS--SpatiaLite--and-MS-Geo--experimental- and a basic example here: http://www.web2pyslices.com/slice/show/1899/leaflet-and-geojson-with-web2py Paolo On Friday, November 13, 2015 at 3:47:18 PM UTC

[web2py] Re: Oracle perfomance issues with version 2.12.3

2015-11-09 Thread Paolo Valleri
a performance issue on pydal, then there should be something in the SQLFORM.grid part. Paolo On Sunday, November 8, 2015 at 6:16:31 AM UTC+1, tomt wrote: > > Hi, > > I encountered really slow responses when I was using my web2py app to > access an oracle database. I tried

Re: [web2py] Re: CMS WEB2PY

2015-10-15 Thread Paolo Amboni
thub when it's finished (the cms), right now > you can see the site (work in progress) at www.daxslab.com, suggestions > and criticism are very welcomed > > El 12/10/15 a las 06:09, Paolo Amboni escribió: > > Are there some contraindications to use web2py with php based cms li

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Paolo Amboni
ow > you can see the site (work in progress) at www.daxslab.com, suggestions > and criticism are very welcomed > > El 12/10/15 a las 06:09, Paolo Amboni escribió: > > Are there some contraindications to use web2py with php based cms like > joomla? > > Il giorno s

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Paolo Amboni
Very interesting if you release it on github I'll definitely try it. -- 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

[web2py] Re: CMS WEB2PY

2015-10-12 Thread Paolo Amboni
also Mezzanine and > Django CMS). > > Anthony > > On Saturday, October 10, 2015 at 3:32:22 AM UTC-4, Paolo Amboni wrote: >> >> After some research i finally concluded that there is no stable and >> structured CMS made for web2py (tell me if i'm wrong). >&g

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-12 Thread Paolo Amboni
I'm using pycharm community edition, that for what I understand is free. Are these licenses for the pro version? Is the pro version supporting web2py? If yes i'm iterested. Il giorno domenica 11 ottobre 2015 21:29:54 UTC+2, Encompass solutions ha scritto: > > I can try it if you want. +1 > > On

[web2py] CMS WEB2PY

2015-10-10 Thread Paolo Amboni
After some research i finally concluded that there is no stable and structured CMS made for web2py (tell me if i'm wrong). Which is a python cms that better can be put beside a web2py site (already made)? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Getting type 'exceptions.ImportError' cannot import name table_field after upgrading to 2.12.3

2015-08-24 Thread Paolo Valleri
see also https://github.com/kenji4569/sqlabs/issues/68 On Monday, August 24, 2015 at 3:23:24 PM UTC+2, Johann Spies wrote: I had similar problems which convinced me to to stop using solidtable. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips

[web2py] formstyle strange behaviour

2015-08-21 Thread Paolo Amboni
I was just experimenting different styles and i came across this strange behaviour: if i put the formstyle='table3cols' the form appear different than without it! So what is the default value? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: formstyle strange behaviour

2015-08-21 Thread Paolo Amboni
#L18) and is set to bootstrap3_inline. Anthony On Friday, August 21, 2015 at 10:06:45 AM UTC-4, Paolo Amboni wrote: I was just experimenting different styles and i came across this strange behaviour: if i put the formstyle='table3cols' the form appear different than without it! So what

  1   2   3   4   5   6   7   >