Re: [web2py] Re: This javascript worked in older version of web2py - not in trunk version.

2013-07-25 Thread Paolo Caruccio
Yes the issue is due to jquery version. In your code, please replace .prop() to .attr() (for reference see http://api.jquery.com/prop/) Below code worked in my test: jQuery(document).ready(function(){ jQuery('#a2_other').hide(); jQuery('#survey_a2').change(function(){ conso

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Paolo Caruccio
Maybe related with https://groups.google.com/d/msg/web2py/om58tz-DVOk/Lt5beXcLiH8J By resuming the api: *As of jQuery 1.6*, the .prop() method provides a way to explicitly > retrieve property values, while .attr() retrieves attributes. Therefore, you should replace .attr() with .prop() if yo

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Paolo Caruccio
le_nnd__row').show(); }else{ jQuery('#no_table_nnd__row').hide();}; }); }); Il giorno venerdì 26 luglio 2013 00:52:01 UTC+2, Jordan Ladora ha scritto: > > Hi Paolo, > > Thanks, but no luck.. I replaced > > if( jQuery('#no_table_cnd').at

Re: [web2py] Adjusting the width of the textarea

2013-08-03 Thread Paolo Caruccio
@davedigearati Could you post css rules that you are trying to apply as well as the html skeleton of the form and give more details about your SO, browser(s) and web2py version? I wasn't able to replicate the issue on windows8, IE10, CH27, web2py last trunk. Il giorno sabato 3 agosto 2013 16:

Re: [web2py] Adjusting the width of the textarea

2013-08-04 Thread Paolo Caruccio
I think that the comment is wrong. Actually, the textarea width is not handled by web2py via js. Modern browsers, except IE, have a textarea resizable and so its width is calculated by browser itself. In this case in order to set a fixed width on all textareas you should set in your custom css

[web2py] Re: web2py menus don't like iPhone!

2013-08-15 Thread Paolo Caruccio
In this days I'm building an experimental version of welcome app based on jQuery 2.0.3 and bootstrap 3 (now rc2). With safari on iPhone4 but also with chrome on galaxy s3 mini, the dropdown in navbar wasn't tapable. I solved partially by using this snippet jQuery('.dropdown-toggle')

[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
Unfortunately bs3 has dropped some components used by web2py, for example submenus, has changed many classes and so on. In other words it's a different framework that requires changes in web2py code which - currently- infringe the backward compatibility. Moreover IE7 and FF3.6 aren't supported

[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
and this is my conclusion but I could be wrong. Il giorno martedì 20 agosto 2013 22:34:50 UTC+2, Anthony ha scritto: > > On Tuesday, August 20, 2013 1:22:19 PM UTC-7, Paolo Caruccio wrote: > >> Unfortunately bs3 has dropped some components used by web2py, for example >> submenus, ha

[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
> new "design fashion"). > Again, some examples on how to maintain submenus in bs3 are yet on the > interwebs (http://bootply.com/71520), but lets put this in kind words > don't expect to switch the layout from bs2 to bs3 to get instant adaptation. > > On

[web2py] Re: bootstrap 3

2013-08-20 Thread Paolo Caruccio
orm options within BS). > > Regards, > Ales > > On Tuesday, August 20, 2013 11:15:50 PM UTC+2, Anthony wrote: >> >> On Tuesday, August 20, 2013 2:01:54 PM UTC-7, Paolo Caruccio wrote: >> >>> Anthony you are right about the scaffolding, But currently, web2py >

[web2py] Best approach to render fragments

2013-08-27 Thread Paolo Valleri
be arbitrary long. The second one doesn't compile, and empty.html is very ugly. I am wondering if could be possible to have extend and include more flexible and easier. Paolo -- --- You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py] Re: new web2py.js changes the sequence of execution

2013-08-29 Thread Paolo Valleri
Just to understand better what is going on, try to comment line 257 in web2py.js or even better the whole success block. Paolo On Thursday, August 29, 2013 3:42:29 AM UTC+2, Anthony wrote: > > Looks like this > change<https://code.google.com/p/web2py/source/browse/applications/adm

[web2py] Re: Logged in dropdown links

2013-08-29 Thread Paolo Caruccio
Now in trunk, the auth navbar has a "bare" mode that should simplify its customization. For details please see https://github.com/web2py/web2py/pull/186 Il giorno mercoledì 28 agosto 2013 20:19:28 UTC+2, dirman ha scritto: > > is it posible to add another link to the logged in dropdown in adding

[web2py] Re: Load every 5 seconds

2013-08-30 Thread Paolo Valleri
Have a look at http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components Paolo On Friday, August 30, 2013 7:50:10 PM UTC+2, Javier Pepe wrote: > > Hi > > I need load SQLFOM.grid every 5 seconds, try whith autorefresh, but load > all page. > >

[web2py] Re: Adding files casually

2013-08-30 Thread Paolo Caruccio
from the book http://web2py.com/book/default/chapter/04#URL For the reasons mentioned above, you should always use the URL function to generate URLs of static files for your applications. Static files are stored in the application's static subfolder (that's where they go when uploaded using the

[web2py] Re: How to see the SQL that is generated?

2013-09-07 Thread Paolo Caruccio
http://www.web2py.com/book/default/chapter/06#_lastsql Il giorno sabato 7 settembre 2013 16:43:50 UTC+2, arche...@gmail.com ha scritto: > > I was wondering, how would I go about checking the SQL statement that is > generated from the DAL argument? > -- --- You received this message because

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-14 Thread Paolo Valleri
Your ticket sounds strange to me, because tells us that your gluon/tools.py doesn't have the class Config. Did you really upgrade web2py? Have you compiled your app before upgrading? If so, remove the compiled code and try again. Let us know. Paolo On Saturday, September 14, 2013 4:05:

[web2py] Re: Menus do not work if i test my app with an android client browser

2013-09-16 Thread Paolo Valleri
I can't reproduce it, I've just tested it and it works as expected. On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote: > > hello, i tested with chrome and default browser. > > My menus code do not work > > for example my code > > response.menu += [(A(I(_class='icon-search'),' Logins',

Re: [web2py] Re: Nginx configuration reporting Internal Server Error

2013-09-17 Thread Paolo Valleri
Check if in the web2py root directory there is a file called wsgihandler.py if not move it there remember to restart uwsgi after that Paolo On Tuesday, September 17, 2013 3:58:40 PM UTC+2, viniciusban wrote: > > Thanks, Niphlod. > > I found errors in uwsgi.log. > > Probabl

Re: [web2py] Re: web2py 2.6.3 editor is not working in firefox

2013-09-19 Thread Paolo Valleri
Yes we can! I will work on it asap in the next days :P On Thursday, September 19, 2013 5:30:55 PM UTC+2, Ramos wrote: > > Just a minor improvement. > Could you add a "create" link in the left collapsible menu when we are > editing code in the browser?. > Avoids having to go back to admin and cli

Re: [web2py] request.url with scheme

2013-09-26 Thread Paolo Caruccio
what about {{='%s://%s%s'%(request.env.wsgi_url_scheme,request.env.http_host,request.url)}} ? Il giorno giovedì 26 settembre 2013 15:30:02 UTC+2, Richard ha scritto: > > The only one that seems to do the job is this one : > request.env.http_referer > But it only work in case the user clic on

[web2py] Re: web2py Italy

2013-09-27 Thread Paolo Caruccio
Ben fatto! Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: > > Hi. > > For web2py users that speak Italian, I've create the web2py-it group. It > could be a complementary tool for the Italian web2py community. > https://groups.google.com/forum/?fromgroups#!forum/

[web2py] Re: web2py Italy

2013-09-27 Thread paolo betti
Iscritto! :-) Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: > > Hi. > > For web2py users that speak Italian, I've create the web2py-it group. It > could be a complementary tool for the Italian web2py community. > https://groups.google.com/forum/?fromgroups#!for

[web2py] Re: web2py welcome Performance

2013-09-30 Thread Paolo Valleri
You can wrap the index function with @cache.action(time_expire=3600, cache_model=cache.ram) More, http://web2py.com/books/default/chapter/29/04/the-core?search=cache.action#cache.action Paolo On Monday, September 30, 2013 1:37:49 PM UTC+2, damufo wrote: > > Hi, > > Gmetrix set a

[web2py] Re: pie.htc and web2py

2013-10-01 Thread Paolo Caruccio
According to pie istructions * * > *this path is relative to the HTML file being viewed, not the CSS file it > is called from.* if you put the pie folder in the static one, the related css rule will be .with-rounded-corners {behavior: url('../static/pie/PIE.htc') } Il giorno martedì 1 ottob

[web2py] Re: .ics file name

2013-10-03 Thread Paolo Caruccio
maybe not related to your issue but anyway interesting to read http://greenbytes.de/tech/tc2231/#inlwithasciifilenamepdf http://greenbytes.de/tech/webdav/rfc6266.html Il giorno lunedì 30 settembre 2013 09:45:47 UTC+2, Annet ha scritto: > > In my application I include the name of an organization

[web2py] Re: Change SQLFORM.grid Submit button label

2013-10-03 Thread Paolo Caruccio
if grid.create_form or grid.update_form: o = grid.element(_type='submit', _value='%s' % T('Submit')) o['_value'] = T("Compare Selected") Il giorno giovedì 3 ottobre 2013 19:38:23 UTC+2, P T ha scritto: > > Thanks Massimo, but that didn't work. I resorted to using the followin

[web2py] Re: Print-friendly css for SQLTABLE?

2013-10-04 Thread Paolo Caruccio
@media print { a[href]:after { content:""; } } The above code should hide all the links within anchor tags in the printed page. Please put the rule at the bottom of your custom css file or wrap it in a

[web2py] Re: Custom Style of a textarea.

2013-10-05 Thread Paolo Caruccio
By using server-side DOM and parsing ( see the book http://www.web2py.com/books/default/chapter/29/05/the-views?search=DOM#Server-side-DOM-and-parsing ) you could collect all textareas and after make a loop on the collection to change the css class. For example in your controller all_textareas

[web2py] Re: Blank screen from app/admin/edit button

2013-10-10 Thread Paolo Caruccio
Maybe the issue is due to bad ajax caching in opera. @Dave S Please replace the function "load_file(url)" in "admin/static/js/ajax_editors_js" file with: function load_file(url) { jQuery.ajax({ type: "GET", contentType: 'application/json', cache: false, dataType: 'json', u

[web2py] Re: Blank screen from app/admin/edit button

2013-10-11 Thread Paolo Caruccio
false, I had to clear the whole browser cache selecting settings | Delete Private Data,,, from the menu in Opera in order to obtain a succesful result. Il giorno venerdì 11 ottobre 2013 20:17:12 UTC+2, Dave S ha scritto: > > On Thursday, October 10, 2013 12:49:10 PM UTC-7, Paolo Caruccio wr

[web2py] Re: Blank screen from app/admin/edit button

2013-10-12 Thread Paolo Caruccio
just sent a patch<https://code.google.com/p/web2py/issues/detail?id=1716&start=100>on issue tracker. Il giorno sabato 12 ottobre 2013 02:07:40 UTC+2, Dave S ha scritto: > > > > On Friday, October 11, 2013 12:02:55 PM UTC-7, Paolo Caruccio wrote: >> >> Thank yo

[web2py] Re: anchor ends up under black menu bar

2013-10-16 Thread Paolo Caruccio
A classic solution applied in such cases is to assign a css class (named for example 'hashlinked') to the target element. The related css rule is the following: .hashlinked:before { display: block; content: " "; height: 40px; /* the height of the element that hides the target */ visi

[web2py] Re: Integrated IDE does not color javascript code

2013-10-17 Thread Paolo Valleri
Thanks for discovering it, we'll work on it as soon as possible. Paolo On Wednesday, October 16, 2013 5:18:10 PM UTC+2, Ramos wrote: > > hello, > javascript is not colored in the integrated ide of web2py > > Is it possible to activate some type of colors? > > Thank yo

[web2py] Re: web2py and tag-manager/typeahead

2013-10-17 Thread Paolo Valleri
Please, provide more information/code The link you posted doesn't work right now, please review it If can be useful, web2py uses twitter typeahead in the editor sidebar (admin app), it is worth to have a look to that code too Paolo On Thursday, October 17, 2013 3:41:38 AM UTC+2, NeelS

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

2013-10-21 Thread Paolo Caruccio
twbs versions after the 2.2.2 up to 2.3.2 did not introduce significant changes. Version 3.0, instead, is a revolution. We can say that is a different framework. Consequently, although it is easy to create a layout based on twbs 3.0, it is complicated to adjust some components that are pre-buil

[web2py] Re: Bootstrap's nav-collapse

2013-10-24 Thread Paolo Caruccio
If you are using the layout.html that comes with web2py, please pay attention that the normal collapsing behaviour of bootstrap is bypassed: the collapsed menu is only on mobile devices not on PC. So, if it's the case, please check https://github.com/web2py/web2py/blob/master/applications/welco

[web2py] Re: Bootstrap's nav-collapse

2013-10-24 Thread Paolo Caruccio
ontroller_name', None, '#', submenu)) return menu So you could make response.menu =menu_builder() and use MENU helper as usually. Il giorno giovedì 24 ottobre 2013 15:45:46 UTC+2, Annet ha scritto: > > Hi Paolo, > > Thanks for you reply. At the moment I am n

Re: [web2py] Re: 2 domains served by the same web2py

2013-10-24 Thread Paolo Valleri
p.xml'], domains = {'traffic.integreen-life.bz.it':'vtraffic', 'parking.integreen-life.bz.it':'parkbz'} ), vtraffic = dict(languages=['en', 'it', 'de']), parkbz = dict(languages=['en', 'it', 'de&#

[web2py] Re: drop down for grid or smart grid search fields

2013-10-25 Thread Paolo Caruccio
It's not necessary modify the code in gluon. You could replace the text input in the query panel. For example: 1) in db.py we define our table db.define_table('contact', Field('name'), Field('phone')) 2) in default.py we define our controller to create the grid def contacts(): grid=SQ

[web2py] Re: Scheduler and updating db records

2013-10-28 Thread Paolo Valleri
This is a common issue with the scheduler, you have to explicitly force a commit db.commit() Paolo On Monday, October 28, 2013 3:36:13 AM UTC+1, Ignacio Llamas Avalos Jr wrote: > > I am trying to create a task where every night the following function is > run to decrement the days l

[web2py] Re: how to add a style to form tags

2013-10-28 Thread Paolo Caruccio
Perhaps this still works https://groups.google.com/d/msg/web2py/DyspJUl_IMM/njKjq9mEb_0J Replace form['_class'] = "form-horizontal" with form['_style'] = "display:inline;" Il giorno lunedì 28 ottobre 2013 22:00:20 UTC+1, arche...@gmail.com ha scritto: > > > I was wondering how to put a st

[web2py] Re: OAuth2.0 and Facebook (as from the book)

2013-10-29 Thread Paolo Comitini
The mobile registration page allows for users to signup without an email address: http://touch.facebook.com/r.php Paolo Il giorno lunedì 28 ottobre 2013 18:57:06 UTC+1, Lisandro ha scritto: > > I'm having a similar problem with KeyError: 'email'. > > I hav

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
I followed your istructions but the width of the select control is the same in both the browsers IE8 and FF (300px according to line 32 of web2py.css in car_sales/static/css folder) Please try to change the value in the above mentioned css rule, clean the browsers cache, reload the page and see

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
Unfortunately I can't repeat your issue. In my enviroment all works fine (see attached images).

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-31 Thread Paolo Caruccio
By applying Server-side DOM and parsing ( http://web2py.com/books/default/chapter/29/05/the-views?search=DOM#parent-and-siblings) you could use: my_select = form.element('select[name=TestField]') my_select_parent = my_select.parent my_select_parent['_style'] ='width:400px;' Il giorno giove

Re: [web2py] Re: Documentation of the date time picker from dynarch, version 1.0

2013-11-04 Thread Paolo Caruccio
maybe here http://sourceforge.net/projects/jscalendar/ Il giorno domenica 3 novembre 2013 23:30:19 UTC+1, mweissen ha scritto: > > Thank you - this will help! > By the way: is there any full description for this program? > > > > 2013/11/3 Paolo Caruccio > > >>

[web2py] Re: Insert Failed: Insufficient data left in message

2013-11-06 Thread Paolo Valleri
have you checked the variables content of a failure? Paolo On Thursday, November 7, 2013 8:36:52 AM UTC+1, at wrote: > > Hi, > > Occationally an error is reported stating following problem: > "/home/www-data/web2py/gluon/dal.py", line 8514, in insert\nret = > s

[web2py] Re: Improving database performance

2013-11-08 Thread Paolo Valleri
create the indexes outside web2py, there is a plan to add this feature in the upcoming releases see: https://code.google.com/p/web2py/issues/detail?id=1665&sort=-id Paolo On Thursday, November 7, 2013 11:45:25 AM UTC+1, Arto Huhtala wrote: > > Hi, > > I am developing a test applica

[web2py] Re: How is the current menu styled to be horizontal?

2013-11-11 Thread Paolo Caruccio
Currently the default layout.html is based on bootstrap framework (see http://getbootstrap.com/2.3.2/index.html) As far as I know the minimum dependencies required from web2py for any layout are: - web2py.css - web2py_ajax.html (which in turn refers to web2py.js and jquery) However, in order to

Re: [web2py] Re: web2py & pycharm...

2013-11-14 Thread Paolo Valleri
hi, I've just tried the 'community edition' and I got many Unresolved references for request, response and so on. Have you found a way to fix ? Paolo On Tuesday, October 1, 2013 2:29:49 AM UTC+2, Richard wrote: > > This suppose to be solve : > http://youtrack.jetbrains.

[web2py] Re: How is the current menu styled to be horizontal?

2013-11-14 Thread Paolo Caruccio
and let me know if works. Il giorno giovedì 14 novembre 2013 19:05:25 UTC+1, JoeCodeswell ha scritto: > > Dear Paolo, > > Your post has gotten me *very close* to what i want to achieve. However, > when i hover over a "root" menu item and then down over the sub-menu items,

[web2py] Re: requires=IS_IN_SET translation

2013-11-16 Thread Paolo Caruccio
The IS_IN_SET validator allows to list the options as a dictionary ( http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=IS_IN_SET ) Therefore, for an example, you could do: def index(): options = {'Apple':T('Apple'),'Banana':T('Banana'),'Cherry':T('Cherry')} form=SQL

[web2py] Re: web2py ACE editor

2013-11-18 Thread Paolo Valleri
Have a look to the code of admin app, we do the same thing in the app editor (the only difference is that we use codemirror instead of ACE) On Monday, November 18, 2013 1:10:30 PM UTC+1, Yebach wrote: > > Hello > > I got the following task > > In my home page created with web2py I need to embed A

[web2py] Re: Making the DAL orders-of-magnitude faster...

2013-11-20 Thread Paolo Valleri
How should I test 'your approach'? Would you share a patch? Please, compare the two tests with the same number of iterations. Paolo On Wednesday, November 20, 2013 12:04:35 PM UTC+1, Arnon Marcus wrote: > > I get these results: > > C:\Python26\python.exe F:/Experime

[web2py] Re: Making the DAL orders-of-magnitude faster...

2013-11-20 Thread Paolo Valleri
speed_rows_with_simple_processor() total=1.084824 avg=0.010848 Mind that your code doesn't work properly, I got the error: "sqlite3.IntegrityError: foreign key constraint failed". Find attached an updated version. Paolo On Wednesday, November 20, 2013 2:32:12 PM UTC+1, Arn

[web2py] Re: Making the DAL orders-of-magnitude faster...

2013-11-22 Thread Paolo Valleri
e geometry() and alias at the moment doesn't work with them: see https://code.google.com/p/web2py/issues/detail?id=1789&sort=-id If there are no objections I will make a PR later today. Paolo On Thursday, November 21, 2013 1:28:34 AM UTC+1, Arnon Marcus wrote: > > My guess about

[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) - https://code.google.co

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

[web2py] Re: again on javascript chart

2016-05-12 Thread Paolo Amboni
sday, 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/Pan

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

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

[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: - http://we

[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

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 te

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

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

2016-10-17 Thread Paolo Valleri
the same you have now with response.stream but it'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... > >

[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. Appa

[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] 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: 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 db.table.field.writa

[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 "readonly

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

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 not

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

[web2py] Re: table headers with style

2016-12-07 Thread Paolo Caruccio
eloper.mozilla.org/en-US/docs/Web/CSS/Specificity https://developer.mozilla.org/it/docs/Web/CSS/Universal_selectors Il giorno mercoledì 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: >> >>

[web2py] Re: table headers with style

2016-12-08 Thread Paolo Caruccio
tbl1.b', 'tbl1.c', 'tbl1.d'], _class="table table-striped myeheaders")}} Il giorno giovedì 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: >> >&g

[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: SQLFO

[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

[web2py] Re: Files toggle sidebar pop-up on initial page load

2013-11-27 Thread Paolo Caruccio
patch issued https://code.google.com/p/web2py/issues/detail?id=1792 Please note that I can't attach the patched file in issue tracker app since it gives me the following message: Issue attachment storage quota exceeded. Anyway you'll find the patched file here attached. Il giorno mercoledì 2

[web2py] Re: After upgrade to 2.8.2: foreign key constraint failed

2013-12-04 Thread Paolo Valleri
Paolo On Wednesday, December 4, 2013 3:26:32 AM UTC+1, Scott Hunter wrote: > > I have a site which, after upgrading to 2.8.2 (and clearing out the > sessions), when I try update a record via a smartgrid or via admin, I get > the error in the title. I tried the same action on the copy o

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Paolo Caruccio
Maybe this helps https://groups.google.com/d/msg/web2py/z_vjoBM9WlU/FLw7MCQIViMJ Il giorno mercoledì 4 dicembre 2013 21:44:04 UTC+1, Richard ha scritto: > > Hello, > > I try to print some pages today and found that there is a hyperlink > address that appear beside each link of the page even ima

Re: [web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Paolo Caruccio
Bootstrap has: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L228 so by the suggested rules we remove the link from the content. Il giorno mercoledì 4 dicembre 2013 22:07:10 UTC+1, Richard ha scritto: > > Yes Paolo, it works great... > > Many thanks for this

[web2py] new feature in trunk: TODO panel in admin editor

2013-12-08 Thread Paolo Valleri
27;ve seen users using FIXME (please let me know the ones you use most). It is still in a work in progress feature, given that please let me know not only any issue you will find but also all extensions you foresee. Paolo -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Re: Proposal for big but simple improvement: [add view] in IDE view

2013-12-09 Thread Paolo Valleri
the file name could be get by a dialog. Let me think about that a bit more. For the [Add or +] in the file list, if I remember correctly Roberto (in CC) has started something a while ago. Paolo On Monday, December 9, 2013 4:57:25 PM UTC+1, Mika Sjöman wrote: > > Hi > > I just noti

Re: [web2py] reference field or add if not in db

2013-12-10 Thread Paolo Caruccio
If you define the referenced table before the table having the list:reference field the form widget should be a multiple dropbox (see http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=list#list:,-and-contains ) Example from the book: >>> db.define_table('tag',

[web2py] Re: Hide url when printing page with links

2013-12-11 Thread Paolo Caruccio
Some previous discussions on this argument maybe help you: https://groups.google.com/d/msg/web2py/z_vjoBM9WlU/FLw7MCQIViMJ https://groups.google.com/d/msg/web2py/5NN7NrEIsRA/--BYce1AeNwJ Il giorno mercoledì 11 dicembre 2013 16:17:13 UTC+1, Ramos ha scritto: > > hello i have a page with a smartg

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-13 Thread Paolo Valleri
Please, let us know what you have changed in the last days, if today nothing work and in the early days only default.py. @devs we should try to update response.static_version for each new major release at least. Paolo On Friday, December 13, 2013 10:27:04 AM UTC+1, Richard Brown wrote

[web2py] Re: help-block in Bootstrap forms

2013-12-13 Thread Paolo Caruccio
dicembre 2013 17:22:35 UTC+1, Niphlod ha scritto: > > is the endgame really let response.menu generate a structure than is > converted every time server-side ? > Shouldn't we avoid server-side dom at all costs ? > > On Friday, December 13, 2013 3:21:28 PM UTC+1, Paolo Caruccio w

[web2py] Re: help-block in Bootstrap forms

2013-12-13 Thread Paolo Caruccio
Thank you Niphlod. I see what you mean. I'll try to convert my code in order to build a custom formstyle. However, I'll share my code with the web2py users group: maybe it could be useful to someone. About the menu, I have in my mind a simple change to the MENU helper that should semplify its c

[web2py] Re: Wappalyzer

2013-12-16 Thread Paolo Valleri
y" in the header or for the global js variable $.web2py (only for recent web2py app). I'll work on a PR later today. Paolo On Monday, December 16, 2013 2:42:19 PM UTC+1, webpypy wrote: > > Hi, > > I wish I could help, but I don't know what is it about. > > Good luc

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread Paolo Valleri
logs should be placed in /var/log/apache2/ and /var/log/wsgi can you also check if the string after alias_match in /etc/apache2/sites-available/default matches the one mentioned here: https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-ubuntu.sh#L148 Paolo On Tuesday

[web2py] Re: Detecting MYSQL running status

2013-12-19 Thread Paolo Valleri
I've the same problem, I don't think DAL has this kind of ability but I leave the word to others in such cases. Are you interested in showing the 404 page for all tickets or only for those the involve the db connection? Paolo On Thursday, December 19, 2013 7:35:24 AM UTC+1, Raj Ch

[web2py] Re: response.models_to_run in web2py 2.8.2

2013-12-20 Thread Paolo Valleri
I am not able to debug it a little more but as you can see here: https://github.com/web2py/web2py/commits/master/gluon/compileapp.py a few changes have been made on how models are handled, perhaps something broken backward compatibility ? Have you already tried with 2.7.4 ? Paolo On Friday

Re: [web2py] server slow down when face multiple requests

2013-12-22 Thread Paolo Valleri
what web2py version are you using? have you already had a look here: http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-and-scalability ? Paolo On Sunday, December 22, 2013 1:48:56 AM UTC+1, viniciusban wrote: > > If you're using sqlite or migrations are en

[web2py] Re: Using ZURB Foundation?

2013-12-26 Thread Paolo Caruccio
Yes, it is. For certain aspects, indeed, it is simpler to implement than bootstrap3 (for example the multilevel menu). To start, you should build a scaffolding layout.html based on Foundation classes and put the Foundation files (normalize.css, foundation.css, foundation.min.js) in the static fo

[web2py] Re: Calendar widget in a custom form?

2013-12-30 Thread Paolo Caruccio
Please try to add to the INPUT the class "date": form=FORM(TABLE(...TR("Admission Date: ",INPUT(_class='date',_name= 'adm_date',widget=SQLFORM.widgets.date.widget,requires=IS_DATE()))... Il giorno lunedì 30 dicembre 2013 09:48:06 UTC+1, Keith Planer ha scritto: > > After adding some input valid

[web2py] Re: db modul creating question types

2013-12-30 Thread Paolo Caruccio
# radio Field('question_type', widget=SQLFORM.widgets.radio.widget, requires= IS_IN_SET(['option A','option B']) #checkboxes Field('question_type', widget=SQLFORM.widgets.checkboxes.widget, requires= IS_IN_SET(['option A','option B','option C']) #textarea Field('question_type', 'text') #text in

[web2py] Re: db modul creating question types

2013-12-30 Thread Paolo Caruccio
If you want more "questions" with different types in the same form you could be interested to read this discussion https://groups.google.com/forum/#!topic/web2py/FAvjWNUiC3Y Il giorno lunedì 30 dicembre 2013 18:01:04 UTC+1, Paolo Caruccio ha scritto: > > > # radio >

[web2py] Re: Happy New Year everybody!

2014-01-01 Thread Paolo Caruccio
Happy 2014 to all. Il giorno mercoledì 1 gennaio 2014 23:06:30 UTC+1, Massimo Di Pierro ha scritto: > > Happy new year everybody, > > some good news: > 1) python is growing popularity > > https://sites.google.com/site/pydatalog/pypl/python-blog/pythonisthelanguageoftheyear > 2) there will be a we

<    1   2   3   4   5   6   7   >