[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] 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] Authentication failed ajax call

2012-06-03 Thread Paolo
to the login page even when the request.ajax is True? Regards, -- Paolo

Re: [web2py] Re: Authentication failed ajax call

2012-06-04 Thread Paolo
Grazie Massimo, I've just opened an issue on google code, http://code.google.com/p/web2py/issues/detail?id=832 Regards, paolo Il 03.06.2012 21:05 Massimo Di Pierro ha scritto: Good point. This is a complicated issue because it depends on the client-side app details. Anyway, please open

[web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
: relation auth_user already exists even with a new and fresh welcome app. The worst thing is that after receiving this error, the application is blocked and I have to restart web2py killing its process. I am using web2py trunk with postgres 9.1 (ubuntu) what should I do? regards -- Paolo

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Hi Johann, Yes, I started the db in postgres is totally empty. As y suggested I've removed all the files in databases/ but I am still getting the same error. What do you mean with drop all the app-related-tables ? currently I am saving the db with db.export_to_csv_file() Regards, paolo Il

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Johann thanks, it worked! but now I got a new error :( Ticket: Traceback (most recent call last): File /home/paolo/Desktop/git/web2py/gluon/restricted.py, line 205, in restricted exec ccode in environment File /home/paolo/Dropbox/git/web2py/applications/bikend/models/db.py, line 252

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
), Field(categories, 'list:reference route_category'), Field(status, 'string', requires=IS_IN_SET(['public', 'review', 'work_in_progress']), default='work_in_progress'), auth.signature, format='%(name)s (%(id)s)' ) what should I do? -- Paolo Il 13.06.2012 20:48

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
, description too long'))]) ) paolo Il 14.06.2012 00:34 Massimo Di Pierro ha scritto: Do you have a db.define_table('pictures',) ? On Wednesday, 13 June 2012 17:21:52 UTC-5, Gabriella Canavesi wrote: Hi Niphlod, thanks you for the suggestion I solved even that error and I added

Re: [web2py] Switching sqlite/postgres

2012-06-14 Thread Paolo
Hi all, Actually I cannot move the pictures table declaration because both off them have references to each other (mutual reference?) In route the field photo_id references pictures and in pictures the field route_id references route. -- Paolo Il 14.06.2012 09:56 Niphlod ha scritto: don't

Re: [web2py] Switching sqlite/postgres

2012-06-14 Thread Paolo
Hi Niphlod, again thanks for your suggestion, it worked very well. I removed all the reference fields, I run once and then again with all the reference fields without the former errors. To me is a bit strange that the reference type field doesn't work with an empty db :( Regards, -- Paolo

Re: [web2py] Switching sqlite/postgres

2012-06-14 Thread Paolo
I am paolo! I've just discovered that on google groups it is written gabriella :-( I will try to fix it, maybe because I am not using a google mail? Anyway, you are right! thanks again for the feedbacks paolo:-) Il 14.06.2012 15:35 Niphlod ha scritto: Gabriella, or Paolo. Maybe it's

[web2py] Impersonate

2012-06-26 Thread Paolo
= auth.impersonate() return response.render('admin/imp.html', dict(form=r)) Ticket: 2012-06-26 16:24:55,140 - web2py - ERROR - Traceback (most recent call last): File /home/paolo/Desktop/git/web2py/gluon/restricted.py, line 205, in restricted exec ccode in environment File /home/paolo/Dropbox/git

[web2py] Upload error field *_newfilename does not belong to the table

2012-08-07 Thread Paolo
Hi all, I've just checked out the last trunk, I got the following error: 2012-08-07 19:26:01,063 - web2py - ERROR - Traceback (most recent call last): File /home/paolo/Desktop/git/web2py/gluon/restricted.py, line 205, in restricted exec ccode in environment File /home/paolo/Dropbox

[web2py] computed fields are not executed with Table inheritance

2012-08-17 Thread Paolo
'))]), ) pictures_fields.thumbnail.compute = lambda row: THUMBER(row.picture, 200, 200, name='thumb') pictures_fields.normal.compute = lambda row: THUMBER(row.picture, 600, 600, name='normal') pictures_fields.picture_desc.label = T('Picture description') What is wrong? Regards, paolo --

[web2py] Re: Submit two SQLFORMs in one go

2012-08-29 Thread Paolo
something better already built-in in SQLFORM.factory. Cheers, Paolo On Wednesday, August 29, 2012 4:49:18 PM UTC+2, Marek Mollin wrote: Couple of ideas. There have been some hacks about just appending fields from one SQLFORM with another. + Massimo answer but: I would recomend using

[web2py] Lazy_tables with virtual fields

2012-08-30 Thread Paolo
Dear all, I just updated web2py and after turning on the lazy_table I got: Traceback (most recent call last): File /home/paolo/Dropbox/git/web2py/gluon/restricted.py, line 209, in restricted exec ccode in environment File /home/paolo/Dropbox/git/web2py/applications/bikend/views/load

[web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Paolo
Dear all, occasionally, I am getting this error too (with and without lazy_table) Which OS are you using ? Could you post your db model? Paolo On Monday, September 17, 2012 7:21:42 AM UTC+2, mweissen wrote: I have read some threads about this error message - I got it too: Version web2py

[web2py] Re: DAL - postgresql - circular table definitions

2012-09-28 Thread Paolo
at all by it worked. Paolo On Friday, September 28, 2012 7:36:44 PM UTC+2, Leonel Câmara wrote: Is this something that is a bug that's going to be fixed, for instance by the DAL deferring the checks on foreign keys, or is it a feature (supposed to work this way) and I have to change in my

[web2py] Query with postgres

2012-10-16 Thread Paolo
? Best, Paolo --

[web2py] Re: Query with postgres

2012-10-17 Thread Paolo
() In the select I may created_on and use s instead, something like that: dates = db(query).select(s,count,orderby=~s, limitby=limitby, groupby=s) but doing that I got this error: 2012-10-17 08:27:59,210 - web2py - ERROR - Traceback (most recent call last): File /home/paolo/Dropbox/git/web2py/gluon

[web2py] Re: Query with postgres

2012-10-17 Thread Paolo
Hi Massimo, thanks for the suggested query but unfortunately I got this error: Traceback (most recent call last): File /home/paolo/Dropbox/git/web2py/gluon/restricted.py, line 208, in restricted ccode = compile2(code,layer) File /home/paolo/Dropbox/git/web2py/gluon/restricted.py, line

[web2py] Re: Query with postgres

2012-10-18 Thread Paolo
simplify all the things, isn't it? I will check it later this week-end. Thanks Paolo On Wednesday, October 17, 2012 7:25:59 PM UTC+2, Massimo Di Pierro wrote: It should work with python 2.7 but not previous version. You can also do: s=db.club.created_on.year() | db.club.created_on.month

[web2py] Re: EXPORT result to csv file

2012-11-13 Thread Paolo
something like that should work: open(request.folder+'/bk.csv', 'w').write(str(db(db.table.id).select(db.table.ALL))) have a look at http://web2py.com/book/default/chapter/06#CSV-%28one-Table-at-a-time%29 for more details Paolo On Tuesday, November 13, 2012 7:24:38 PM UTC+1, dantuluri

[web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-12 Thread Paolo
Hi and great job! One thing that I don't like is at line 10 apt-get -y dist-upgrade this was also in the previous version, actually I see this too restrictive, for example I have ubuntu 12.04 and don't want to move to 12.10 Paolo On Wednesday, December 12, 2012 12:06:16 AM UTC+1, Niphlod

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-12 Thread Paolo
I've just tested, you should use with != something like that seems to work if [ $UID != 0 ]; then... Paolo On Wednesday, December 12, 2012 12:48:33 PM UTC+1, Niphlod wrote: Updated. don't have a shell lying around, could you try it ? --

[web2py] Time aggregations

2012-12-14 Thread Paolo
? So far, I've solved this issue by making a simple query but aggregation and then, counting and aggregating by hand. I hope there is a better and linear approach for that. Regards Paolo --

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-19 Thread Paolo
-externally-managed failed with error code 1 in /tmp/pip-build/uwsgi Maybe something is missing? Moreover, I don't like the fact that it tries to make a dist-upgrade Regards, Paolo On Wednesday, December 19, 2012 1:11:06 AM UTC+1, Arnon Marcus wrote: Hey guys, I'm also using web2py and redmine

[web2py] delete uploads with SQLFORM.factory

2012-12-26 Thread Paolo
/paolo/Dropbox/git/web2py/gluon/restricted.py, line 212, inrestricted exec ccode in environment File /home/paolo/Dropbox/git/web2py/applications/bikend/controllers/club.py,line 123, in module File /home/paolo/Dropbox/git/web2py/gluon/globals.py, line 193, in lambda self._caller = lambda

[web2py] Re: generating svg from controllers

2012-12-26 Thread Paolo
Hi, this should work: return XML(a) paolo On Wednesday, December 26, 2012 7:52:54 PM UTC+1, jonas wrote: Hi. Is there any way to generate xml svg via controllers? svg can be made by using declarative syntax, i.e xml instead of javascript. is it possible to return an string containing svg

[web2py] Re: delete uploads with SQLFORM.factory

2012-12-26 Thread Paolo
='bootstrap', showid= False, upload=URL('default', 'download'),uploadfolder =request.folder+'uploads/pictures', uploadseparate=True, autodelete=True,table_name ='club') Paolo On Thursday, December 27, 2012 12:47:19 AM UTC+1

[web2py] Re: delete uploads with SQLFORM.factory

2012-12-27 Thread Paolo
button is no longer shown, why ?! I've also tried: requires=[] but in this case I got the same error as in the other cases. Paolo On Thursday, December 27, 2012 7:30:00 AM UTC+1, Paolo wrote: Hi Massimo, I've just tried to post and then edit with both SQLFORM.factory having uploadseparate

[web2py] Re: delete uploads with SQLFORM.factory

2012-12-27 Thread Paolo
-- worked - adding an img with appadmin and then removing it with sqlform_edit -- failed - using both sqlform_add and sqlform_edit -- failed Now I am thinking about the way I set the default value, maybe for a field as an upload I have to set something more? Paolo On Thursday, December 27, 2012 9

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 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: 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: 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: 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] 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: 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-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-30 Thread Paolo Caruccio
(this.parentNode.currentStyle['color']); /* ie7 doesn't support inherit */ } Please, let me know if it works. Il giorno mercoledì 30 maggio 2012 07:42:07 UTC+2, Andrew ha scritto: Thanks Paolo, The layout is back to normal. However the Login set of links are looking like buttons, rather than

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

2012-05-30 Thread Paolo Caruccio
. I will take a look at your code and I will try to find a solution. Il giorno mercoledì 30 maggio 2012 16:15:09 UTC+2, Richard ha scritto: Hello Paolo, Pretty nice! Did you implement the update of the records also? Is it a straight and easy task or it becomes trickier to implement than

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

2012-05-30 Thread Paolo Caruccio
On Wednesday, May 30, 2012 7:42:07 AM UTC+2, Andrew wrote: Thanks Paolo, The layout is back to normal. However the Login set of links are looking like buttons, rather than the background being the same as the navbar. This is the same in the two browsers I'm looking at (IE7 and Firefox

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

2012-05-31 Thread Paolo Caruccio
Morover, in this case javascript is necessary to make the menu compatible with the css rules of bootstrap. Il giorno venerdì 1 giugno 2012 00:11:23 UTC+2, Anthony ha scritto: I don't get why Javascript would be needed for nested menus. http://www.grc.com/menudemo.htm GRC's pure CSS menus

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

2012-05-31 Thread Paolo Caruccio
3:05:46 PM UTC-5, Paolo Caruccio wrote: Andrew, it's simple go back to old auth_navbar. In views/layout.html comment this jquery code: jQuery('.auth_navbar').each(function(){ jQuery(this) .addClass('btn-group') .children('a').addClass('btn

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

2012-06-01 Thread Paolo Caruccio
venerdì 1 giugno 2012 01:58:24 UTC+2, Andrew ha scritto: Just noticed that layout.html has: response.files.append(URL('static','css/bootstrap-responsive.css')) but the file is not in static/css in the welcome app. On Friday, June 1, 2012 11:01:08 AM UTC+12, Andrew wrote: Paolo, I

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

2012-06-01 Thread Paolo Caruccio
think I just have to find the way to expose the HTML, XML() not seems to work. Richard On Thu, May 31, 2012 at 12:09 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Paolo, Here some fresher code : def trip_update(): # only SQLFORM.factory tested form

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

2012-06-05 Thread Paolo Caruccio
in bootstrap.min.css Maybe the issue is due to a bad contrast, between background-color of navbar and border color of caret. Il giorno martedì 5 giugno 2012 11:25:45 UTC+2, Andrew ha scritto: Hi Paolo, I can leave it for now. Are your changes in trunk yet? Also, I tried updating an existing app

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

2012-06-06 Thread Paolo Caruccio
Andrew, if it's possible, could you post the raw html source of not working page? Moreover, try to put in static/js folder the web2py_ajax.js from old application: sometimes the dropdown doesn't fire if this file is missing, I don't know why. Il giorno mercoledì 6 giugno 2012 12:55:39 UTC+2,

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

2012-06-06 Thread Paolo Caruccio
Szimszon, is it a new application or have you replaced an old layout with that new one? Il giorno mercoledì 6 giugno 2012 13:42:22 UTC+2, szimszon ha scritto: I have issue with dropdown menu when the main menu is a link too. If I click on the main menu than that menu is activated and I

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

2012-06-07 Thread Paolo Caruccio
to 2.0.4. If a menu item has both an URL specified and also additional submenus, these don't get displayed. Regardless if this is a first or a second level menu item. If the URL is set as None, additional submenus display properly. Regards On Wednesday, June 6, 2012 11:13:48 PM UTC+2, Paolo

Re: [web2py] Multiple buttons in links of smartgrid

2012-06-07 Thread Paolo Caruccio
links is a list so you could add more items to it. links = [lambda row: A(T('action 1'),_href=URL(acontroller ,function1,args=[row.id])), lambda row: A(T('action 2'),_href=URL(acontroller ,function2,args=[row.id, row.field1])), lambda row: A(T('action 3'),_href=URL(acontroller

[web2py] Re: trunk and statusbar?

2012-06-08 Thread Paolo Caruccio
The statusbar was missing in layout.html in the version 1.99.7 (2012-04-16 08:15:36) dev, so it isn't disappeared because of new layout.html with the bootstrap topbar. .jumbotron and .subhead classes are specific of bootstrap and consequently of bootswatch. As Nyphold observed both these

[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

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

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

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

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

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

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

  1   2   3   4   5   6   7   >