[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-28 Thread Paolo Caruccio
Andrew, a solution for sidebar issue is to add span12 class to the section#main of layout.html in views folder About the auth nav bar a first solution is to set a specific color because IE7 ignore inherit. Please add the below two lines at the bottom of bootswatch.css file in static/css

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-28 Thread Paolo Caruccio
Andrew, I, just now, proposed a patch through issue tracker ( http://code.google.com/p/web2py/issues/detail?id=824) that should resolve the problems with IE7 noted by you. Moreover the auth_navbar is more compliant with bootstrap (check the image). I tested the new welcome layout replacing the

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Paolo Caruccio
JS. After all, we are replacing superfish. Il giorno domenica 27 maggio 2012 00:06:55 UTC+2, Massimo Di Pierro ha scritto: These no record boostrap and the new menu logic is staying in trunk. The only issue is whether the weird menu structure should be generated by MENU helper or by the JS

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Paolo Caruccio
code layout.html that attempts to reproduce the same effect. It works something is wrong with alignment and I cannot figure out what. Can you take a look? Massimo On Thursday, 24 May 2012 18:16:37 UTC-5, Paolo Caruccio wrote: Andrew, I played a bit on this subject. Please replace the below

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Paolo Caruccio
-block; height: 0; opacity: 0.7; vertical-align: top; width: 0; margin-right:-13px; margin-top: 7px; float:right; } Il giorno domenica 27 maggio 2012 12:23:54 UTC+2, Paolo Caruccio ha scritto: Small patch - not deeply tested - to make the menu working when javascript is disabled

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Paolo Caruccio
Do you mean to add a new MENU attribute (i.e. 'bootstrap_menu') like 'mobile' and to switch by menu types? I think that's a good option. Il giorno sabato 26 maggio 2012 03:40:26 UTC+2, Massimo Di Pierro ha scritto: We can include this in MENU and eliminate the JS. What do you think? On

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Paolo Caruccio
. Massimo On Saturday, 26 May 2012 08:53:53 UTC-5, Paolo Caruccio wrote: Here attached the html.py with modified class MENU. This is only a draft not deeply tested. Il giorno sabato 26 maggio 2012 03:40:26 UTC+2, Massimo Di Pierro ha scritto: We can include this in MENU and eliminate

[web2py] Re: Conditional represent

2012-05-19 Thread Paolo Caruccio
please try: db.Register.repliedOn.represent = lambda v, row: v.strftime('%d/%m/%Y %H:%M:%S') if v else Il giorno sabato 19 maggio 2012 09:00:37 UTC+2, Annet ha scritto: In a model I have the following validator: db.Register.repliedOn.requires=IS_EMPTY_OR(IS_DATETIME(format='%Y-%m-%d

[web2py] Multi computed fields

2012-05-17 Thread Paolo
(r): g = geocoders.Google() place, (lat, lng) = g.geocode(r.name) return lng What I would like to find is a way to fire the execution of a function when the form is submitted. More or less something like a compute action at table level. Regards, -- Paolo

Re: [web2py] Re: Multi computed fields

2012-05-17 Thread Paolo
Hi Niphlod, thanks for your answer. Actually, I am looking for something that I can put in my model without touch the code of the forms, e.g., I don't want to change the code of the admin application to solve the problem. Paolo Il 17.05.2012 13:14 Niphlod ha scritto: The onsuccess parameter

Re: [web2py] Re: Multi computed fields

2012-05-17 Thread Paolo
for the latter calls? Regards, Paolo Il 17.05.2012 15:09 Anthony ha scritto: To get it down to it down to one function, how about: def compute_geoCode(r, component): g = geocoders.Google() place, (lat, lng) = g.geocode(r.name [4]) return eval(component) db.cities.full_address.compute = lambda r

Re: [web2py] Re: Multi computed fields

2012-05-17 Thread Paolo
This is perfect! Thank you very much Anthony. Paolo Il 17.05.2012 16:47 Anthony ha scritto: def compute_geoCode(r, component): g = geocoders.Google() place, (lat, lng) = cache.ram(r.name, lambda: g.geocode(r.name [9]), None) return eval(component) Anthony On Thursday, May 17, 2012 11:44

[web2py] response.menu with bootstrap dropdown menu

2012-03-07 Thread Paolo
am not able to set up correctly response.menu in order to generate html code with that field inside. What I can do? Best regards -- Paolo [1] http://twitter.github.com/bootstrap/javascript.html#dropdowns

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

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

[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: 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: 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: 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] 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',

[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

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

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

[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: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
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 (eggrid_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
: !--[if IE 9]html class=ie ie9 lte8 no-js lang={{=T.accepted_language or 'en'}} ![endif]-- !--[if (gt IE 9)|!(IE)]!-- html class=no-js lang={{=T.accepted_language or 'en'}} !--![endif]-- Paolo

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

2011-11-09 Thread Paolo Caruccio
{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: Windows + Apache + mod_proxy

2011-11-08 Thread Paolo Caruccio
Omi, please try the following: in vhost_web2py.conf replace VirtualHost *:80 ServerName ochiba-183 with VirtualHost LIP:80 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

[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

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

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

2011-10-28 Thread Paolo Caruccio
of 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

[web2py] Re: AppReport using web2py view.

2011-10-27 Thread Paolo Caruccio
#pdf:pagenumber printed on {{=tdy}} /div /body ### in view print_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
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 'layout.html'}} {{=form}} jquery.multiuploads.js Description

[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: Menus and Selected Tab

2011-10-17 Thread Paolo Caruccio
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: Display Loading' animated gif or js : How to

2011-10-12 Thread Paolo Caruccio
Ciao. Paolo

[web2py] Re: Windows + Apache + mod_proxy

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

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

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

[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

[web2py] Re: Windows + Apache + mod_proxy

2011-10-09 Thread Paolo Caruccio
. Paolo On 7 Ott, 21:31, Omi Chiba ochib...@gmail.com wrote: Paolo, You gave me a hope because it looks you tried it recently and it's very similar to my environment. (Is your OS Windows 7, XP, or Windows Server ??) My environment: OS: Windows 7 SP1 - 32bit Python: 2.7.2 Apache: httpd

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

[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 massimo.dipie

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 ross.peop...@gmail.com I have been running Chrome dev

<    2   3   4   5   6   7