[web2py] Re: fadeOut response.flash

2012-12-20 Thread Paolo Caruccio
Maybe you'll find this discussion useful. Il giorno giovedì 20 dicembre 2012 09:36:25 UTC+1, Johann Spies ha scritto: > > When I log in the flash telling me that I am logged in does not timeout > until I close it. > > I want it t

Re: [web2py] Re: web2py 2.3.2 added "+ -" to some form elements

2012-12-20 Thread Paolo Caruccio
http://code.google.com/p/web2py/issues/list Il giorno giovedì 20 dicembre 2012 15:31:56 UTC+1, Daniele ha scritto: > > Hmm I'm not sure how to open a ticket in google...sorry ~_~ > > > > On Dec 20, 2012, at 6:48 AM, howesc > > wrote: > > ooops. i added the - and didn't test the "only 1 row case"

[web2py] Re: fadeOut response.flash

2012-12-20 Thread Paolo Caruccio
ersion of web2py and it could be incompatible with the version you are using currently). By this code the flash message will close after 8 seconds if the user doesn't close it before. Il giorno giovedì 20 dicembre 2012 15:31:38 UTC+1, Paolo Caruccio ha scritto: > > Maybe you&#

[web2py] Re: widgets.checkboxes.widget INPUT inside LABLE

2012-12-20 Thread Paolo Caruccio
I think as Massimo said, but W3C raccomandation on forms tells: "To label a control, the label element is used; the label text and the control itself go inside the label element." So KMax request should be acceptable Il giorno giovedì 20 dicembr

[web2py] Re: widgets.checkboxes.widget INPUT inside LABLE

2012-12-20 Thread Paolo Caruccio
16:50:47 UTC+1, Paolo Caruccio ha scritto: > > I think as Massimo said, but W3C raccomandation on > forms<http://www.w3.org/TR/html5/forms.html#forms> > tells: > > "To label a control, the label element is used; the label text and the > control itself go inside th

[web2py] Re: Unable to load module mod_wsgi on Windows

2012-12-24 Thread Paolo Caruccio
If you plan to use mod_wsgi 3.4 in apache 2.4 on windows download newest build from http://www.lfd.uci.edu/~gohlke/pythonlibs/ (search in the page for mod_wsgi) If you are interested you could read also https://groups.google.com/d/topic/modwsgi/6nmiDUt0ldI/discussion

[web2py] Re: help with finding syntax error in nested if loop in view

2012-12-24 Thread Paolo Caruccio
"else:" statement is inline with "if" statement. the code wrapped in {{ }} follows python syntax rules. Alternatives below should be work (not tested): A) using ternary operator B) inline syntax with multiple {{ }} C) syntax not in line Il giorno martedì 25 dicembre 2012 00:40:01 UTC+1,

[web2py] Re: How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread Paolo Caruccio
My simple way: a) stop apache server b) start web2py server in standard way by double clicking web2py.py in order that it creates its own files c) in displayed window set the admin password d) stop web2py server and check that in web2py folder there are "options_std.py" and "parameters_8000.py"

[web2py] Re: How to set/reset administrator password (apache+wsgi+windows)

2012-12-25 Thread Paolo Caruccio
Il giorno martedì 25 dicembre 2012 19:41:17 UTC+1, Paolo Caruccio ha scritto: > > My simple way: > > a) stop apache server > b) start web2py server in standard way by double clicking web2py.py in > order that it creates its own files > c) in displayed window set the adm

[web2py] Re: Get url of uploaded file

2012-12-27 Thread Paolo Caruccio
Following code should work {{=URL('download', args=audio.filepath)}} Please read http://web2py.com/books/default/chapter/29/04#URL to learn more about URL mapping. Il giorno giovedì 27 dicembre 2012 13:03:07 UTC+1, Eduardo Costa Lopes ha

[web2py] Re: Problems with the MENU helper function and HTML5

2012-12-29 Thread Paolo Caruccio
One possible solution (not tested). 1 step) in static/js create a new file named "web2py_metroui.js" having the following contents jQuery(function(){ jQuery('.menu>li.dropdown').each(function(){ jQuery(this).attr({'class':'','data-role':'dropdown'}); }); jQuery('.menu li li').each(fu

[web2py] Re: Problems with the MENU helper function and HTML5

2012-12-31 Thread Paolo Caruccio
troui framework doesn't support nested submenu if I'm not missing something 3) dropdown.js (metroui file) has a small bug on line 91: $('.menul-pull') instead of $('.pull-menu') 4) attached w2p app is only demonstrative so my apologies in advance for eventua

Re: [web2py] geodal

2013-01-05 Thread Paolo valleri
Hi Massimo, I have just tried a few examples but there is a bug in the getPoint function, please find attached a simple patch to fix it. Paolo On Monday, December 24, 2012 7:21:12 PM UTC+1, Massimo Di Pierro wrote: > > Thank you Denes. Would you please check my changes. I do not think I

Re: [web2py] geodal

2013-01-06 Thread Paolo valleri
Hi Massimo, I've tried the same 3 tests. The first one failed, it was working before though, the ticket: Traceback (most recent call last): File "/home/paolo/Dropbox/git/web2py/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/home/paol

Re: [web2py] geodal

2013-01-06 Thread Paolo valleri
well done! All the former tests worked. I will investigate more the others functions as soon as possible. Paolo On Sunday, January 6, 2013 4:28:13 PM UTC+1, Massimo Di Pierro wrote: > > One more try please. > > On Sunday, 6 January 2013 02:11:09 UTC-6, Paolo valleri wrote: >

[web2py] self join on postgres

2013-01-07 Thread Paolo valleri
(start.mac = end.mac) WHERE ((start.station_id = 11) AND (end.station_id = 12)) ORDER BY EXTRACT(epoch FROM start.gathered_on); and it fails raising the following error: Traceback (most recent call last): File "/home/paolo/Dropbox/git/web2py/gluon/restricted.py", line 212, in restri

[web2py] Re: self join on postgres

2013-01-07 Thread Paolo valleri
gresql.org/pgsql-novice/2011-01/msg00069.php and now I am trying to understand how to define a sub_select with the limitby=1 to carry out the left join. Any idea ? Regards, Paolo On Monday, January 7, 2013 2:21:33 PM UTC+1, Niphlod wrote: > > did you try changing "start" and &

Re: [web2py] geodal

2013-01-08 Thread Paolo valleri
,-0.127683 POINT(41.901514 12.460774),41.901514,12.460774 POINT(40.851775 14.268124),40.851775,14.268124 The geometry field MUST contain only point otherwise it raises an error. Hope it helps Paolo On Sunday, January 6, 2013 5:29:52 PM UTC+1, Paolo valleri wrote: > > Hi Massimo, I found

Re: [web2py] geodal

2013-01-08 Thread Paolo valleri
ame_p* and *location_P* respectively. To fix it, I added in dal.py .lower() at line 832: ftype = ftype % dict(schema=schema, tablename=tablename, fieldname=field_name.lower(), srid=srid, dimension=dimension) And now in the db I have the

Re: [web2py] 1.99.4 is OUT

2011-12-14 Thread Paolo Caruccio
I already wrote how i fixed the issue (tested only IE9, chrome 15, firefox 8 and Opera 11.60 on windows7) in a previous thread ( https://groups.google.com/d/msg/web2py/AjoKneQCOEA/rFYgbg7GMLAJ). to correct the ugly display I modified this file admin\static\plugin_multiselect\jquery.multiselect.cs

[web2py] assigning class name to SQLform element parent gives error

2011-12-18 Thread Paolo Caruccio
*Scenario* 1. #model db.py db.define_table('specializzazioni', Field('specializzazione', type='string',notnull=True,label=T('Specialization')), format='%(specializzazione)s', ) db.define_table('t_valutazione_risorsa', Field('f_specializzazione',type='list:referenc

[web2py] Re: assigning class name to SQLform element parent gives error

2011-12-18 Thread Paolo Caruccio
My fault. I omitted to say that the error occurs after some options have been selected and form is submitted leaving empty the text input. Thank you for your consideration. Paolo

[web2py] Re: deployment problem with mod_wsgi

2011-12-19 Thread Paolo Caruccio
Maybe this helps http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/

[web2py] Re: assigning class name to SQLform element parent gives error

2011-12-19 Thread Paolo Caruccio
no one else has encountered same problem?

[web2py] Re: assigning class name to SQLform element parent gives error

2011-12-19 Thread Paolo Caruccio
ticket http://code.google.com/p/web2py/issues/detail?id=574 submitted

[web2py] Re: write view into an html file

2011-12-28 Thread Paolo Caruccio
try the solution in this discussion https://groups.google.com/d/topic/web2py/GyQ8_szQFoI/discussion Happy Holidays.

[web2py] Re: write view into an html file

2011-12-29 Thread Paolo Caruccio
The plugin has all needed libraries to work and not requires that you install others. I used it in a my app and worked like a charm. Give it a try.

[web2py] Re: small display problem when using wizard

2011-12-30 Thread Paolo Caruccio
fixed in trunk http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a

[web2py] Re: redirecting python console output to web browser page

2012-01-02 Thread Paolo Caruccio
There is another HTML5 technology to push stream from server to client : EventSource aka Sent-Server Events (http://dev.w3.org/html5/eventsource/). Its behaviour is like ajax long polling. I'm - just now - experimenting a simple mechanism to send to clients a message when the database changes. P

[web2py] Re: Problem with DB2 and text field type when accessing db2 using ODBC ...

2012-01-19 Thread Paolo Caruccio
On windows7 I solved the issue by adding to db2cli.ini these rows (replace MYDATABASE and MYDATABASEALIAS with your data): [MYDATABASE] dbalias=MYDATABASEALIAS LONGDATACOMPAT=1 LOBMAXCOLUMNSIZE=1048575 if you need more info about db2cli.ini go to this page http://publib.boulder.ibm.com/infocent

[web2py] Re: Problem with DB2 and text field type when accessing db2 using ODBC ...

2012-01-20 Thread Paolo Caruccio
I use pyodbc (http://code.google.com/p/pyodbc/) and my connection string is: db = DAL('db2://DSN=MYDATABASE;UID=userid;PWD=password') For other details you could read this thread https://groups.google.com/d/topic/web2py/HMVE9S2a6sQ/discussion

[web2py] Re: Windows + Apache + mod_proxy

2011-10-06 Thread Paolo Caruccio
The following istructions have been adapted from http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/ for my dev enviroment Windows + Apache + mod_wsgi. I succesfully tested connection to db2 express from IMB through pyodbc. Maybe it could help you. I premise

[web2py] Re: Windows + Apache + mod_proxy

2011-10-09 Thread Paolo Caruccio
sword are the same as accessing to IBM DB2 Express- C. At the end I succesfully registered a new user, so all worked fine for me. Ciao. Paolo On 7 Ott, 21:31, Omi Chiba wrote: > Paolo, > > You gave me a hope because it looks you tried it recently and it's > very similar to my

[web2py] Re: new feature - need help

2011-10-09 Thread Paolo Caruccio
I'm glad you like it, but it is necessary to point out that the css rules must be adapted to single layout. Especially with regard to positioning. As you can see from the picture, I used as a reference the layout of your application "issue tracker". Ciao. Paolo

[web2py] Re: Windows + Apache + mod_proxy

2011-10-10 Thread Paolo Caruccio
Hi Omi, >I wasn't sure this part, so I just add "127.0.0.1 ochiba-183" to my hosts. Try to replace with "10.30.6.122 ochiba-183" Let me know if it works. Ciao. Paolo

[web2py] Re: Windows + Apache + mod_proxy

2011-10-10 Thread Paolo Caruccio
I am very glad I helped Ciao. Paolo

[web2py] Re: new feature - need help

2011-10-10 Thread Paolo Caruccio
The result is splendid with your changes. I want only suggest to replace the row # 1344 in /gluon/sqlhtml.py with this jQuery('#w2p_query_fields').val('').change(); so the change event is fired and when you query again the .w2p_query_row is hidden. Ciao. Paolo

Re: [web2py] Re: new feature - need help

2011-10-11 Thread Paolo Caruccio
Richard, thank you.

[web2py] Re: Display "Loading' animated gif or js : How to

2011-10-12 Thread Paolo Caruccio
-> ### controller ### def get_output(): # make evaluation return "web2py_polling('another_action',[args],'output_target');" def another_action(): the_output = "I'm the output" return the_output Ciao. Paolo

[web2py] Re: Windows + Apache + mod_proxy

2011-10-12 Thread Paolo Caruccio
Well done! Paolo

[web2py] Re: Menus and Selected Tab

2011-10-17 Thread Paolo Caruccio
ass='sf-menu')}} to {{=MENU(response.menu,_class='sf-menu',li_active="tab_highlighted")}} li_active allows to change default class "web2py-menu-active" to your preference. In the above example "tab_highlighted". ### in base.css (welcome app static/css subfolder) append the css rule .web2py-menu-active a, .tab_highlighted a{color:red} Ciao. Paolo

[web2py] Re: Menus and Selected Tab

2011-10-18 Thread Paolo Caruccio
Richard, could you post not working code sample? Ciao. Paolo

[web2py] Re: From html view to pdf.

2011-10-25 Thread Paolo Caruccio
I used succesfully web2py-appreport. https://github.com/lucasdavila/web2py-appreport Ciao. Paolo

[web2py] Re: AppReport using web2py view.

2011-10-27 Thread Paolo Caruccio
report.html {{=A(SPAN(T('print report'), _class='printer_ico'), _href=URL('myreport'), _class="button")}} Let me know if this works. Ciao, Paolo

[web2py] Suggestions for multiple files upload in form

2011-10-27 Thread Paolo Caruccio
folder You'll find some comments in the code and also many errors. I look forward to your suggestions and opinions. Ciao. Paolo {{response.files.extend([URL('static','css/multiuploads.css'),URL('static','js/jquery.multiuploads.js')])}} {{extend

Re: [web2py] Suggestions for multiple files upload in form

2011-10-28 Thread Paolo Caruccio
multiuploads.css (before /* CUSTOMIZATION */ comment). However, I am preparing a packed .w2p web2py small application as required by Bruno. Maybe, there you will see something nicer. Ciao. Paolo

Re: [web2py] Suggestions for multiple files upload in form

2011-10-29 Thread Paolo Caruccio
Bruno, thanks. What do you think about the upload mechanism? Can it be translate in a web2py widget? or is it better to use a different javascript/jquery library? Regards. Paolo

[web2py] Re: Windows7 python2.7 SQLite web2py

2011-11-02 Thread Paolo Caruccio
I also have no problem. Windows 7 64bit Python 2.7 32 bit (64-bit version gave me problems) Pywin 32-bit Paolo

[web2py] Re: Windows7 python2.7 SQLite web2py

2011-11-02 Thread Paolo Caruccio
Can you provide a packed .w2p web2py application? Paolo

[web2py] Re: Windows + Apache + mod_proxy

2011-11-08 Thread Paolo Caruccio
Omi, please try the following: in vhost_web2py.conf replace ServerName ochiba-183 with ServerName ochiba-183 where LIP is the server's IP See for reference my previous post (STEP D) Let me know if it works. Paolo P.S. Moreover what do you think about to change the thread titl

[web2py] Re: new welcome app - need help with css

2011-11-09 Thread Paolo Caruccio
ywords{display:inline;margin:0 5px;width:350px;} .columns table #w2p_query_panel {left:0;height:26px;bottom:-4px;min-width:539px;} .columns table #w2p_query_panel input, .columns table #w2p_query_panel select{margin:2px 10px 2px 5px;} .columns table #w2p_query_panel input[type="text"]{margin:-2px 5px 0 0;} Paolo

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
ed in div.columns. So I adjusted the width of the table to that of its container ( div.columns). To avoid misunderstandings I used the selector .columns in css rules. Paolo

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
to it (eg"grid_container") and apply to this the css rules. In other words, if you remove the .columns references it will still work but the css rules will also apply to all html table elements. Paolo

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
Other css rules are related to the specific case and override the general css rules applied to web2py_grid. But I'm agreed with you: the best solution is to give a class or an id to the container div. Paolo

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
ayout.html: Paolo

[web2py] Re: new welcome app - need help with css

2011-11-11 Thread Paolo Caruccio
Anthony, since IE (any version), in some circumstances, has a behavior different from other browsers, we need to detect it in css rules. So any solution is good. Paolo

[web2py] Re: web2py 1.99.3 is OUT

2011-12-09 Thread Paolo Caruccio
I solved so: admin\static\plugin_multiselect\jquery.multiselect.css line 14 becomes .ui-multiselect-checkboxes { position:relative /* fixes bug in IE6/7 */; overflow-y:scroll; margin-left:0; width:100%; } line 16 becomes .ui-multiselect-checkboxes label input { position:relative; top:1px; right

[web2py] Re: chrome beta admin problem

2011-03-16 Thread Paolo Comitini
Hi Massimo, the problem is modernizr-1.6.min.js, upgrade to modernizr 1.7 Latest release: 1.7 February 20: Version 1.7 nerfs the WebGL/Chrome9 issue, Opera color input fix, faster (no release notes yet). or dont'use modernizr. Paolo On Mar 16, 4:33 pm, Massimo Di Pierro wrote: > I

Re: [web2py] Re: chrome beta admin problem

2011-03-16 Thread Paolo Comitini
Hi Massimo, the problem is moderinizr 1.6 upgrade to 1.7 or don't use it ;-) Latest release:1.7 February 20: Version 1.7 nerfs the WebGL/Chrome9 issue, Opera color input fix, faster (no release notes yet). Paolo 2011/3/16 Ross Peoples > > I have been running Chrome dev channel

[web2py] Re: help with css

2013-04-15 Thread Paolo Caruccio
Patch sent https://code.google.com/p/web2py/issues/detail?id=1447 Il giorno lunedì 15 aprile 2013 05:48:16 UTC+2, Massimo Di Pierro ha scritto: > > Can you send me a patch? thanks. > > On Sunday, 14 April 2013 10:36:40 UTC-5, Paolo Caruccio wrote: >> >> I found the pro

[web2py] Re: help with css

2013-04-15 Thread Paolo Caruccio
o lunedì 15 aprile 2013 16:42:39 UTC+2, Massimo Di Pierro ha scritto: > > Can you explain how that works? > > Il giorno lunedì 15 aprile 2013 05:47:48 UTC-5, Paolo Caruccio ha scritto: >> >> Patch sent >> >> https://code.google.com/p/web2py/issues/detail?id=1447 &g

[web2py] Re: help with css

2013-04-16 Thread Paolo Caruccio
ut on reduced browser windows only. The patch doesn''st change the button size. Il giorno martedì 16 aprile 2013 00:58:09 UTC+2, Massimo Di Pierro ha scritto: > > I did ( committing now) but I do not see any improvement. > > On Monday, 15 April 2013 10:28:07 UTC-5, Paolo C

[web2py] Re: @cache decorator

2013-04-18 Thread Paolo valleri
Basically it stores the output of the function, in your case the output is the rendered view. For more info about cache, have a look here: http://web2py.com/books/default/chapter/29/04#cache Paolo On Thursday, April 18, 2013 6:17:36 PM UTC+2, BlueShadow wrote: > > Hi I got a site which

[web2py] Re: db select with rows

2013-04-21 Thread Paolo valleri
row in rowsA: temp.append( db(db.tableB.id <http://db.tableb.id/>==row.id).select() ) Paolo On Sunday, April 21, 2013 10:28:18 AM UTC+2, BlueShadow wrote: > > > I can't get my head around this problem it's probably easy but I ask > anyway: > I got rows(lets call them

[web2py] Re: bootstrap thumnails problem

2013-05-02 Thread Paolo Caruccio
This behavior is due to different number of text lines in labels. You could use a jquery plugin (search the net for "jquery equal height") in order to give to the div.thumbnail the same height as tallest one. Or you could give to the div.thumbnail a fixed height and auto overflow-y by a css rule.

[web2py] Re: Dynamically change highlighted class for response.menu

2013-05-09 Thread Paolo Caruccio
for a pyhon solution (not involving javascript) you could check this argument https://groups.google.com/d/topic/web2py/8AHYqV_EKy0/discussion Il giorno martedì 7 maggio 2013 17:56:10 UTC+2, Omi Chiba ha scritto: > > I have a fol

[web2py] Re: Bulk insert: how to improve performances?

2013-05-20 Thread Paolo valleri
I didn't know that as well, Is there a limit in the number of dicts passed to the bulk_insert? Paolo On Monday, May 20, 2013 11:18:51 AM UTC+2, Niphlod wrote: > > there's a bulk_insert method too. > > http://web2py.com/books/default/chapter/29/06?search=bulk > > Il

[web2py] Re: Bulk insert: how to improve performances?

2013-05-20 Thread Paolo valleri
in our bulk_insert? Paolo On Monday, May 20, 2013 2:57:30 PM UTC+2, Niphlod wrote: > > this is the implementation > > def bulk_insert(self, table, items): > return [self.insert(table,item) for item in items] > > no limits there, but it doesn't leverage any

[web2py] Re: Scaling + performance tips to prepare for launch

2013-05-21 Thread Paolo valleri
It is worth to check this too https://developers.google.com/speed/pagespeed/insights Paolo On Tuesday, May 21, 2013 8:40:20 PM UTC+2, Niphlod wrote: > > the session.forget(response) will render all session related features > useless. Use wisely. > I'd add lazy_tables=True t

[web2py] Re: Postgres users beware auth.signature is_active; bad problem, easy to fix

2013-05-24 Thread Paolo valleri
I agree, it would be nice to have is_active as a real boolean although I don't know how difficult could be its implementation without breaking the backward compatibility. Furthermore, I've just checked my instance and is_active is saved as 'T' with postgres 9.1 Paolo On Fr

[web2py] Re: DAL Select constant field

2013-05-30 Thread Paolo valleri
Hi, actually, I couldn't see the reason of that :-P but anyway this seems to work q=db( db.clients.id > 0).select( db.clients.clientuuid, '%s' % 1) Paolo On Thursday, May 30, 2013 5:23:34 PM UTC+2, Zach wrote: > > Hi guys, > > I am trying to run something in the f

[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-05-31 Thread Paolo valleri
ation we want to spread from the admin page. Paolo On Friday, May 31, 2013 3:19:27 PM UTC+2, Massimo Di Pierro wrote: > > Done. in trunk. > > On Thursday, 30 May 2013 22:39:10 UTC-5, 黄祥 wrote: >> >> hi, >> >> just want to report that web2py 2.4.7 admin Recent

[web2py] Re: Problem overriding bootstrap.min.css with customized submit button style

2013-06-03 Thread Paolo Caruccio
please try: input.btn_auth { background:url('../images/button_02.png') no-repeat; border: 0px; width:205px; height:45px; position: relative; top:80px; left:97px; } input.btn_auth:hover { background:url('../images/button_hover_02.png') } input.btn_auth:active { background:url('../imag

[web2py] Re: css help

2013-06-04 Thread Paolo Caruccio
In order to eliminate the issue under point 1, we could modify slightly the interested code in layout.html in: {{if response.title is not None:}} {{=response.title}} {{=response.subtitle or ''}}{{pass}

[web2py] Re: Fun with Scheduler

2013-06-05 Thread paolo betti
I agree Scheduler is great. I use this technique: in modules/lib.py: def a_func(db): # some code # ... return in models/scheduler.py def a_func(): import lib return lib.a_func(db) from gluon.scheduler import Scheduler scheduler = Scheduler(db) in controllers/a_controlle

[web2py] admin access password file

2013-06-11 Thread Paolo valleri
use https, it tries to access parameters_80.py. Thus, I created the file parameters_80.py but then it fails saying to use https :(. Paolo -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and s

[web2py] Re: Save rendered .html views to file system

2013-06-12 Thread Paolo valleri
, time_expire=YOUR_TIME_EXPIRE)}} footer.html will be rendered either if the key hasn't cached already or it is no longer valid (expired). Hope it helps Paolo On Wednesday, June 12, 2013 10:04:07 AM UTC+2, Annet wrote: > > In my application the header and footer of the layout, contain m

[web2py] Re: Spammers on web2pyslices.com

2013-06-15 Thread Paolo valleri
com registration has got a captcha, have you already implemented it? Paolo On Saturday, June 15, 2013 6:40:50 AM UTC+2, rochacbruno wrote: > > Hi, > > recently we are having too many spams posted on web2pyslices.com > > I am deleting one by one, but started to be difficult to

[web2py] Re: Spammers on web2pyslices.com

2013-06-17 Thread Paolo Betti
Hi, is a different solution but have you ever tried CloudFlare (cloudflare.com) service? It is a kind of proxy-cache online. I use it with my site that has very very low traffic :-) but open comments and spammers have disappeared. {the site is made with Plone but I have to upgrade to web2py a

Re: [web2py] Re: admin access password file

2013-06-17 Thread Paolo valleri
Hi Massimo, I've just tried but the issue hasn't gone :( what can I do to debug it more, by who is the request.env.server_port setter ? Paolo On Sunday, June 16, 2013 10:32:37 AM UTC+2, Massimo Di Pierro wrote: > > After > > uwsgi_param UWSGI_SCHEME $sc

Re: [web2py] @request.restful() only works on localhost

2013-06-17 Thread Paolo valleri
that could be a problem of a generic view not correctly loaded due to the following line in db.py response.generic_patterns = ['*'] if request.is_local else [] change it to response.generic_patterns = ['*'] Paolo On Monday, June 17, 2013 9:50:58 PM UTC+2, Michele Comi

[web2py] Re: web2pyslice and PIL thumbnail quality

2013-06-20 Thread Paolo valleri
I am not sure but the quality option could be for jpeg only. Paolo On Thursday, June 20, 2013 5:06:06 PM UTC+2, lesssugar wrote: > > A bit of offtopic but maybe someone knows what's going on. I'm using this > thumbnail generating slice I found: > > LINK<http://www.web2

[web2py] Re: disable left side panel in editor in 2.5>

2013-06-24 Thread Paolo valleri
Are you looking for an hard-code option or for an easy-to-click button to reduce the whole panel? Paolo On Monday, June 24, 2013 8:31:48 PM UTC+2, Massimo Di Pierro wrote: > > Not sure but there should be. Please open a ticket and we will add it > tonight. > > On Monday, 24 Jun

[web2py] Re: Can page/chapter titles be added to the online book ?

2013-06-24 Thread Paolo valleri
oks/default/chapter/29/06#The-database-abstraction-layer> actually even better without the 'default' Paolo On Monday, June 24, 2013 8:31:11 PM UTC+2, Massimo Di Pierro wrote: > > Good idea. Asap. It is easy to do. > > On Monday, 24 June 2013 05:01:11 UTC-5, Holger Schuri

[web2py] datetime operation with dal (postgres)

2013-06-28 Thread Paolo valleri
To some extent the interesting ticket is that, the query generated works without problems (tested with pgadmin). SELECT (test_sum.second_date - test_sum.first_date) FROM test_sum WHERE (test_sum.id IS NOT NULL); Moreover, I run the same example with sqlite, it worked well without error, the resu

[web2py] Re: datetime operation with dal (postgres)

2013-06-28 Thread Paolo valleri
Hi Massimo, can you point out how to write query with date diff? I tried this: db(diff_date > timedelta(days=4)).select() and I got the same ticket, I don't know if this is there right way for expressing query with date_diff. Paolo On Friday, June 28, 2013 12:41:13 PM UTC+2, Massimo D

[web2py] Re: Stop menu from collapsing

2013-06-28 Thread Paolo Caruccio
This should work: replace navbar section in layout.html with {{=response.flash or ''}} {{is_mobile=request.user_agent().is_mobile}} {{=response.logo or ''}} {{='auth' in globals() and auth.na

[web2py] Re: Radio Buttons layout problem with trunk

2013-07-18 Thread Paolo Caruccio
Please put the following code in your custom css file (or in the bottom of web2py_bootstrap.css if you are using the welcome app scaffolding): .generic-widget input[type='radio'] {margin:-1px 0 0 0; vertical-align:middle ;} .generic-widget input[type='radio'] + label {display:inline-block; margin

[web2py] Re: Radio Buttons layout problem with trunk

2013-07-18 Thread Paolo Caruccio
acker together with the patch. Il giorno giovedì 18 luglio 2013 17:56:50 UTC+2, Massimo Di Pierro ha scritto: > > Should this go in web2py_bootstrap.css? > > On Thursday, 18 July 2013 10:51:15 UTC-5, Paolo Caruccio wrote: >> >> Please put the following code in your custom css

[web2py] Re: better calendar.js?

2013-07-18 Thread Paolo Caruccio
How to Turn Off Form Autocompletion Il giorno giovedì 18 luglio 2013 21:46:46 UTC+2, Jim S ha scritto: > > I have no idea what version my cal

Re: [web2py] Re: better calendar.js?

2013-07-18 Thread Paolo Caruccio
-attribute Il giorno giovedì 18 luglio 2013 22:16:34 UTC+2, Jim S ha scritto: > > that may work for 1 browser but I can't require that all users of the app > turn off auto-complete. > > > On Thu, Jul 18, 2013 at 3:03 PM, Paolo Caruccio > > > wrote: > >>

Re: [web2py] Re: better calendar.js?

2013-07-18 Thread Paolo Caruccio
x27;off' Il giorno giovedì 18 luglio 2013 23:42:21 UTC+2, Jim S ha scritto: > > So it should be an update to the widget, right? > > -Jim > > > On Thu, Jul 18, 2013 at 4:24 PM, Paolo Caruccio > > > wrote: > >> Well, the automplete is a | attribute a

[web2py] Re: real time graph

2013-07-19 Thread Paolo Valleri
Have a look at http://www.flotcharts.org/ Paolo On Friday, July 19, 2013 12:58:54 AM UTC+2, Vera Moreira wrote: > > hi everyone, > I need some help, does anyone have examples on how to do a "real time > graph". What I need is a graph to constantly show random numbers, I

Re: [web2py] Re: better calendar.js?

2013-07-19 Thread Paolo Caruccio
scenarios, could be useful) will be preserved and, from a developer point of view, it's simpler remove a button or change its onclick action when he/she want use an other calendar or even use the html5 calendar feature. Il giorno venerdì 19 luglio 2013 15:13:25 UTC+2, Paolo Caruccio ha sc

[web2py] Re: Errors in form, please check it out....... HOW?

2013-07-22 Thread Paolo Caruccio
In the last trunk of web2py, the form input error message is more visible. See attached image. Il giorno lunedì 17 giugno 2013 16:04:50 UTC+2, REM ha scritto: > > I'm attempting to understand a few things and decided to test out one of > the items at: http://web2py.com/appliances > > Specifica

[web2py] Re: Google Analytics - 'analytics is not defined' error

2013-07-24 Thread Paolo Valleri
b2py/blob/master/applications/welcome/static/js/analytics.min.js> btw, it is a bit out of date. Paolo On Wednesday, July 24, 2013 4:12:34 PM UTC+2, st...@hurlingstats.com wrote: > > Wondering if anyone has seen this. > > I've set my tracking id in menu.py > > response.g

Re: [web2py][share] ressources

2013-07-24 Thread Paolo Valleri
On Wednesday, July 24, 2013 4:47:37 PM UTC+2, Richard wrote: > > Hello, > > I recently discover these two lib : > > http://johnny.github.io/jquery-sortable/ (avoid jquery ui just to get > drag and drop capability) > thanks for sharing, I would try to use that with bootstrap tabs. > > http://

[web2py] Re: Err 24: too many files open

2013-07-24 Thread Paolo Valleri
dederocks, I've just tried to run lsof -p on a ubuntu server running web2py In my case, it returns 138 opened files among libraries, sockets and so on; the most opened file is /dev/zero, opened 55 times. Paolo On Thursday, July 25, 2013 8:18:32 AM UTC+2, dederocks wrote: > > T

[web2py] Re: Err 24: too many files open

2013-07-25 Thread Paolo Valleri
nes where redis is instantiated? Paolo On Thursday, July 25, 2013 8:48:37 AM UTC+2, dederocks wrote: > > Thank you Paolo for the benchmark! > In my case, I start at 107, and at the end of the process the count is at > 672!! nginx on the other hand is stable around 55. > And the

Re: [web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Paolo Caruccio
Please try; jQuery("Please Enter Name").appendTo(jQuery( "#taxpayer_name").parent()); or jQuery("Please Enter Name").insertAfter( "#taxpayer_name"); Your code fails because the div.error is created inside the input element Il giorno giovedì 25 luglio 2013 13:39:34 UTC+2, Prasad Muley ha scritt

<    1   2   3   4   5   6   7   >