[web2py] Re: REF: Modal Window: Automatically close and update parent window:

2012-11-08 Thread Paolo Caruccio
a possible solution (skeleton code so please check for errors and omissions): # controllers def companies(): return dict() def add_company(): form = SQLFORM(db.company, formstyle='bootstrap') if form.process().accepted: session.flash = 'form accepted' redirect(URL('a

[web2py] Re: Icons/ imgs rather than labels for Grid headers

2012-11-04 Thread Paolo Caruccio
Not necessarily. You may return in the view only the table with new headers. Following code is not tested, so please check for errors. # controller @auth.requires_login() def customer_select(): f,v = request.args(0), request.args(1) try: query = f and db.t_customer[f] == v or db.t_custome

[web2py] Re: Icons/ imgs rather than labels for Grid headers

2012-11-04 Thread Paolo Caruccio
Complete example extrapolated from my working code (please adapt it to your needs) : #model db.define_table('t_customer', Field('f_vat', type='string', notnull=True, label=T('VAT Nr.'), length=32, ), Field('f_name', type='string

[web2py] Re: Icons/ imgs rather than labels for Grid headers

2012-11-04 Thread Paolo Caruccio
Tables and grids have a "headers" parameter. It's a dictionary where the key is the header in the form "tablename.fieldname" and value is the header representation. For example with: headers = dict((str(header), B(EM(header.label))) for header in db.tablename ) table = SQLTABLE(rows, headers=hea

[web2py] Re: Reading a text file after uploading in a form

2012-11-01 Thread Paolo Caruccio
a simple skeleton code (please check for errors): def page_controller(): form = FORM( TABLE ( TR( TD(LABEL('Upload File:')), TD(INPUT(_type='file', name='myfile', id='myfile', requires=IS_NOT_EMPTY())) ), TR( TD(INPUT(_type='submit',_value='Submit')) ) ) ) txt_content[] if form.process().accepted

Re: [web2py] really hard using bootstrap input-append and add-on because of web2py error mechanism

2012-10-29 Thread Paolo Caruccio
another workaround (without jquery) is (exemplifying): ''' replace , with your own values ''' ### controller ### def my_controller: form = SQLFORM(db.my_table,formstyle = 'bootstrap') if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'form has er

[web2py] Re: Formatter and values=None problem

2012-10-26 Thread Paolo Caruccio
in code of the Field class > tests the value for None and then exits before calling my formatter. So it > doesn't matter that my formatter can handle None -- it is never called. > > That's why I posted the change to the Field class in the first message of > this thread.

Re: [web2py] page min height

2012-10-25 Thread Paolo Caruccio
Bootstrap extensions for footer to stick at the bottom seem to work. http://bootstrapfooter.codeplex.com/ Il giorno giovedì 25 ottobre 2012 23:29:20 UTC+2, Richard ha scritto: > > Forget about the example of the sticky footer I gave... I will be back > with a better implementation. > > There we

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
Why don't you manage None values in int_to_hms function? Il giorno giovedì 25 ottobre 2012 21:56:17 UTC+2, Joe Barnhart ha scritto: > > Actually Paolo, I have a custom Validator which contains the formatter > function. It is supplied automatically when I use the validator, so I d

[web2py] Re: grid export button

2012-10-25 Thread Paolo Caruccio
al_export_menu.elements('a') > > export_menu_items = [] > for link in export_menu_links: > item = LI(link) > export_menu_items.append(item) > pass > new_export_menu = DIV( > A( T('Exports'), > SPAN(_class=

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
or better def format_function (value) formatted_value = . return formatted_value db.tablename.fieldname.represent= lambda value,row: format_function(value) if value else "Not Standard Time" Il giorno giovedì 25 ottobre 2012 13:31:43 UTC+2, Paolo Caruccio ha scritt

[web2py] Re: Formatter and values=None problem

2012-10-25 Thread Paolo Caruccio
Did you try: db.tablename.fieldname.represent= lambda value: value if value else 'NT" ? web2py book reference http://web2py.com/books/default/chapter/29/06?search=represent#Record-representation Il giorno giovedì 25 ottobre 2012 03:20:29 UTC+2, Joe Barnhart ha scritto: > > I have an applicatio

[web2py] Re: checking for an empty list

2012-10-24 Thread Paolo Caruccio
web2py is written in Python. In http://www.python.org/dev/peps/pep-0008/ For sequences, (strings, lists, tuples), use the fact that empty sequences > are false. So in your case: if not result: print "No stops" Il giorno mercoledì 24 ottobre 2012 22:33:03 UTC+2, Hector Magnanao ha scrit

Re: [web2py] web2py.css and bootstrap

2012-10-22 Thread Paolo Caruccio
The margin is required when the html code is generated by web2py in one string without line breaks and the elements are "inline elements" (as the "input" element is). Please in a view put following code case #1 {{=DIV(INPUT(_type='text',_value='first element'),'\n',INPUT(_type='text',_value='s

[web2py] Re: grid export button

2012-10-22 Thread Paolo Caruccio
**{'_data-toggle':"dropdown"} > ), > UL(*export_menu_items, > _class='dropdown-menu' > ), > _class='w2p_export_menu btn-grou

[web2py] Re: grid export button

2012-10-22 Thread Paolo Caruccio
For grid export menu I'm happy with below method In the views/*.html file where is your grid put on top (just below extend layout command) the following code: {{ w2p_grid_tbl = grid.element('table') if w2p_grid_tbl: export_menu = grid.element('div.w2p_export_menu') export_menu_links = export_

[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

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

[web2py] Re: Query with postgres

2012-10-16 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/we

[web2py] Query with postgres

2012-10-16 Thread Paolo
le this problem? Best, Paolo --

[web2py] Re: delete posts

2012-10-11 Thread Paolo Caruccio
Sometimes the message was deleted, if I forgot to wrap the code through apposite tool (button with braces symbol) . Maybe for security reasons. Il giorno giovedì 11 ottobre 2012 13:45:31 UTC+2, curiouslearn ha scritto: > > This is perhaps a problem with google groups. Only reasons I am saying

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread Paolo Caruccio
I completely agree with everything Niphlod said in his message. Based on my experience, the css file is only a dress for a pre-existing structure in html. Not surprisingly, Niphlod mentioned "zengarden", namely a html template having css selectors already set, to be dressed. In fact, the CSS fram

Re: [web2py] pass a arbitrary html attributes with helpers (bootstrap data-toggle with A() for example)

2012-10-03 Thread Paolo Caruccio
it, I should read the book before sorry! >> >> Richard >> >> >> On Wed, Oct 3, 2012 at 1:33 PM, Paolo Caruccio >> >> > wrote: >> >>> Please put the attribute with the hyphen in a dictionary: >>> >>> UL([ LI(A(l.upper(),

Re: [web2py] pass a arbitrary html attributes with helpers (bootstrap data-toggle with A() for example)

2012-10-03 Thread Paolo Caruccio
Please put the attribute with the hyphen in a dictionary: UL([ LI(A(l.upper(), _href='#tab1', **{{_data-toggle:'tab'}})) for l inlist_of_letters_required ], _class='nav nav-tabs') >From web2py book http://web2py.com/books/default/chapter/29/5#HTML-helpers: *Instead of a set of unnamed argumen

[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-03 Thread Paolo Caruccio
With "datatable" do you mean that one from datables.net? If yes, I used this guide http://datatables.net/blog/Twitter_Bootstrap_2 and I did not have any problem. Il giorno mercoledì 3 ottobre 2012 02:16:07 UTC+2, apps in tables ha scritto: > > For me, > > The using of datatable will make the m

Re: [web2py] New version of bootstrap

2012-10-02 Thread Paolo Caruccio
ha scritto: > > Solved > > Thanks Paolo, it was driving me nuts. > > Richard > > On Tue, Oct 2, 2012 at 4:39 PM, Richard Vézina > > > wrote: > >> Thanks Paolo, >> >> It works for welcome. >> >> Still have difficulties with

Re: [web2py] New version of bootstrap

2012-10-02 Thread Paolo Caruccio
Richard, the issue has been corrected some time ago. Please check the trunk version. Anyway, you could replace .icon-white{background-image:url("../images/glyphicons-halflings-white.png" );} /* right folder for bootstrap white images/icons */ with /* right folder for bootstrap white images/ico

[web2py] Re: Help with menu error using web2py 2.0.9

2012-10-02 Thread Paolo Caruccio
If you are interested, here you will find the definition of portable application http://en.wikipedia.org/wiki/Portable_application I repeat, I'm just reporting a method by which I am fine, I'm not making advertising. Il giorno martedì 2 ottobre 2012 16:50:07 UTC+2, JoeCodeswell ha scr

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread Paolo Caruccio
rsion freely downloaded from portableapps.com) with its default settings? I'm looking forward to your reply. Il giorno venerdì 28 settembre 2012 22:28:34 UTC+2, JoeCodeswell ha scritto: > > Dear Paolo, > > Here are the results from my runs on Ubuntu 12.04 LTS and Windows XP SP3

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

2012-09-28 Thread Paolo
t way 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) a

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
Joe a last try. I confused web2py versions on my pc. In last trunk of web2py the javascript hover menu funcion has been moved in static/js/web2py_bootstrap.js Here attached new test4joe. Finger crossed. Il giorno giovedì 27 settembre 2012 23:38:26 UTC+2, JoeCodeswell ha scritto: > > Dear Niphlod,

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
It's very strange. I tested my layout.html in several Windows scenarios (windows7, windowsXp sp3) with several browsers (last version of Opera, Firefox, Chrome and IE9) without any issue. I used the last trunk of web2py, not stable version 2.0.9. Anyway, web2py 2.0.9 has topbar menu managed via b

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
r menu function in jQuery resize() Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto: > > Dear Paolo, Firefox 15.0.1 > > Thanks for the help. I have 4 results to report running the *textxjoe*app in > my environment. > > 1. Processor: Pentium dual co

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
nction in jQuery resize() Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto: > > Dear Paolo, Firefox 15.0.1 > > Thanks for the help. I have 4 results to report running the *textxjoe*app in > my environment. > > 1. Processor: Pentium dual core

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
ser window is resized: it sees always the window size as < 948px Issue solution: In layout.html wrap hover menu function in jQuery resize() Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto: > > Dear Paolo, Firefox 15.0.1 > > Thanks for the help. I have 4

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-27 Thread Paolo Caruccio
nction in jQuery resize() Il giorno giovedì 27 settembre 2012 03:17:06 UTC+2, JoeCodeswell ha scritto: > > Dear Paolo, Firefox 15.0.1 > > Thanks for the help. I have 4 results to report running the *textxjoe*app in > my environment. > > 1. Processor: Pentium dual core

[web2py] Re: Apache Error Please Help

2012-09-26 Thread Paolo Caruccio
apache version? mod_wsgi version? Il giorno mercoledì 26 settembre 2012 13:31:23 UTC+2, Hassan Alnatour ha scritto: > > [Wed Sep 26 06:29:38 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3648): > Target WSGI script 'C:/web2py/wsgihandler.py' cannot be loaded as Python > module. > [Wed Sep 26

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-25 Thread Paolo Caruccio
Please try to rename "bootstrap-responsive.min.css" in static/css folder (for example change the name in "_bootstrap-responsive.min.css" Moreover could you check the viewport dimensions? It seems a responsive layout issue. Il giorno martedì 25 settembre 2012 19:20:18 UTC+2, JoeCodeswell ha scri

[web2py] Re: Bootstrap icons don't work with latest web2py?

2012-09-21 Thread Paolo Caruccio
please put glyphicons-*.png in static/images folder and check that in web2py_bootstrap.css there are the following rules: /* right folder for bootstrap black images/icons */ [class^="icon-"],[class*=" icon-"]{ background-image:url("../images/glyphicons-halflings.png") } /* right folder for boots

[web2py] Re: response.menu args

2012-09-19 Thread Paolo Caruccio
see https://groups.google.com/d/msg/web2py/Jc2qOVJ-Zws/yLzKdWb-y3cJ Il giorno mercoledì 19 settembre 2012 17:55:09 UTC+2, lyn2py ha scritto: > > Hi guys, > > This is a typical code > response.menu = [ > (T('Home'), False, URL('default','index'), []) > ] > > I would like to ask, what does

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

Re: [web2py] Re: web2py default layout.html

2012-09-13 Thread Paolo Caruccio
I found the reason of this wrong behavior. The elements having class "row" inherit the width from "container", as you know, but they have a negative margin-left (-20px). The negative margin-left is balanced out with the margin-left of the elements having class "span*" (20px) In our case we had:

[web2py] Re: short term roadmap

2012-09-09 Thread Paolo Caruccio
About point 4 of the list it's important, imho, to have an html scaffolding that fits, through css classes, to our needs. A solution could be to change the html structure by using javascript. For example, we could obtain the dropdown auth navbar by inserting this code to the bottom of "layout.ht

[web2py] Re: short term roadmap

2012-09-09 Thread Paolo Caruccio
About point 4 of the list it's important, imho, to have an html scaffolding that fits, through css classes, to our needs. A solution could be to change the html structure by using javascript. For example we could obtain the dropdown auth navbar by inserting this code to the bottom of "layout.htm

Re: [web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Paolo Caruccio
vider='>', breadcrumbs_class='', **kwargs): Il giorno mercoledì 5 settembre 2012 21:33:29 UTC+2, Adi ha scritto: > > thanks Paolo... worked perfectly. > > On Wed, Sep 5, 2012 at 1:59 PM, Paolo Caruccio > > > wrote:

[web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-05 Thread Paolo Caruccio
to display all breadcrumbs in the same line please try to append to web2py.css following rule li.w2p_grid_breadcrumb_elem { display:inline-block; } in versions >= 2.0.2 web2py.css file has the right rule, so this issue should arise only with previous experimental versions. Il giorno gioved

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

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

[web2py] Re: Appadmin possible bug in CSV import and related patch

2012-08-19 Thread paolo betti
Happy to be useful, web2py is a great framework. :-) PB Il giorno domenica 19 agosto 2012 17:14:00 UTC+2, Massimo Di Pierro ha scritto: > > thanks. in trunk. > > --

[web2py] Appadmin possible bug in CSV import and related patch

2012-08-19 Thread paolo betti
I think import from CSV file in appadmin does not works so I tried to correct it. :-) I attach new appadmin.py (filename plugin_art_appadmin.py) and patch file, hope they can help you. Regards. PB -- # -*- coding: utf-8 -*- # ## #

[web2py] computed fields are not executed with Table inheritance

2012-08-17 Thread Paolo
ue, requires=[IS_IMAGE()]), Field('picture_desc', 'text', requires=[IS_TRIM(), IS_LENGTH(140,error_message=T('Warning, description too long'))]), ) 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] 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 "

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

[web2py] Re: bootstrap carousel web2py Nightly build

2012-06-24 Thread Paolo Caruccio
LightDot, thank you. Il giorno sabato 23 giugno 2012 04:38:47 UTC+2, LightDot ha scritto: > > Hi Paolo, > > you're quite right about the amount of work needed to spot and properly > resolve such css collisions. There are quite a few left too... I'm working > on seve

[web2py] Re: how to limit a label width in a form?

2012-06-22 Thread Paolo Caruccio
Try to apply on label this css rule: white-space: pre-wrap; The white-space property is supported in all major browsers. ( http://www.w3schools.com/cssref/pr_text_white-space.asp) Il giorno venerdì 22 giugno 2012 15:35:18 UTC+2, Marco Prosperi ha scritto: > > > hi all, I would like to limit the

Re: [web2py] consider adding a div around error message

2012-06-21 Thread Paolo Caruccio
I usually make my customization of the form errors trough the controller. For example in your case I would do: form = SQLFORM(db.mytable,formstyle = 'divs') if form.process().accepted: response.flash = 'form accepted' elif form.errors: for fieldname in form.errors:

Re: [web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-21 Thread Paolo Caruccio
7;}} {{pass}} When the user is logged in, after his/her name there will be a comma + 1 space Il giorno giovedì 21 giugno 2012 18:54:25 UTC+2, Alec Taylor ha scritto: > > Reading your code example highlights the problem. > > There is no | after "Welcome paolo" > &

Re: [web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-21 Thread Paolo Caruccio
Alec, it seems that you aren't using last trunk. For example #navbar missed classes. In last trunk, indeed, we have: Welcome paolo http://127.0.0.1:8000/welcome/default/user/logout?_next=/welcome/default/index> ">Logout | http://127.0.0.1:8000/welc

Re: [web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-21 Thread Paolo Caruccio
uot; line). > > On Thu, Jun 21, 2012 at 5:00 AM, Paolo Caruccio > wrote: > > Alec, > > > > please double check that in "views/layout.html" exists this code (note > the > > pipe in separators): > > > > {{='auth' in glo

[web2py] Re: bootstrap carousel web2py Nightly build

2012-06-20 Thread Paolo Caruccio
e topbar. Il giorno martedì 19 giugno 2012 21:35:42 UTC+2, Paolo Caruccio ha scritto: > > I'm building an app for trying carousel feature and I met the same your > issue. > > My solution (note style statement): > > style="width:40px;float:none;text-align:center;&qu

Re: [web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-20 Thread Paolo Caruccio
Alec, please double check that in "views/layout.html" exists this code (note the pipe in separators): {{='auth' in globals() and auth.navbar(separators=(' ',' | ','')) or ''}} You should find it at line 90 in last trunk. Il giorno mercoledì 20 giugno 2012 12:59:56 UTC+2, Alec Taylor ha scri

[web2py] Re: bootstrap carousel web2py Nightly build

2012-06-19 Thread Paolo Caruccio
I'm building an app trying carousel feature and I met the same your issue. My solution (note style stayement): › Maybe you should adapt the width to your necessity. Il giorno martedì 19 giugno 2012 19:25:07 UTC+2, dundee ha scritto: > > Hey all, > > Anyone trying to use carousel in web2py nig

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

2012-06-18 Thread Paolo Caruccio
t maintenance issues. > > Massimo > > On Monday, 18 June 2012 17:07:47 UTC-5, Massimo Di Pierro wrote: >> >> ok. I applied the V2. >> >> Massimo >> >> On Monday, 18 June 2012 16:41:34 UTC-5, Paolo Caruccio wrote: >>> >>> Massimo,

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

2012-06-18 Thread Paolo Caruccio
to remove "bootstrap.min.css" and "bootswatch.css" to obtain basic web2py css theme Instead "bootstrap.min.css" (from twitter or from bootswatch) contains bootstrap css theme. Il giorno lunedì 18 giugno 2012 21:06:20 UTC+2, Massimo Di Pierro ha scritto: &g

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

2012-06-18 Thread Paolo Caruccio
d they seem to >> address the issues perfectly. >> >> Regards >> >> On Sunday, June 17, 2012 9:14:33 PM UTC+2, Paolo Caruccio wrote: >>> >>> Patch submitted http://code.google.com/p/web2py/issues/detail?id=856 >>> >>> Il giorno domenic

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

2012-06-17 Thread Paolo Caruccio
Patch submitted http://code.google.com/p/web2py/issues/detail?id=856 Il giorno domenica 17 giugno 2012 17:32:53 UTC+2, Massimo Di Pierro ha scritto: > > Can you coordinate with Andrew and Paolo and send me a single fix that > applies to latest trunk and addresses the outstanding issue

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

2012-06-17 Thread Paolo Caruccio
If Andrew and LightDot agree, I will prepare a patch and I'll sumbit it in google issue tracker in next two hours. Il giorno domenica 17 giugno 2012 17:32:53 UTC+2, Massimo Di Pierro ha scritto: > > Can you coordinate with Andrew and Paolo and send me a single fix that > app

[web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-17 Thread Paolo Caruccio
Andrew wrote: >> >> The blue color was coming from Line 32 from bootstrap.min.css. However , >> I started again from a clean welcome app and reinstalled the two files and >> the blue is gone, now getting the color from bootswatch. (cache issue ?) >> >> Thanks Paolo.

[web2py] Re: favicon problem

2012-06-17 Thread Paolo Caruccio
In my case was a cache problem. Below the solution worked for me: 1. below replacing files clear the cache of browsers (IE9, OP12, FF13, CH19). Repeat the operation if needed. 2. rename the default files (i.e.: __favicon.ico and __favicon.png 3. put new files in static folder 4. open the brow

[web2py] Re: Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-17 Thread Paolo Caruccio
hment > to a previous post in this list). > > There are two screen shots, current welcome app, and with the buttons > reverted to the old look. > > Credit to Paolo for making both changes. Given that the buttons have been > in trunk for a while, it is worth getting a con

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

2012-06-16 Thread Paolo Caruccio
in Firefox 13 and Opera 12... Are there plans to update Bootstrap > to 2.0.4 in web2py itself? > > Regards > > > On Friday, June 15, 2012 4:49:29 PM UTC+2, Paolo Caruccio wrote: >> >> Andrew, do you mean the code for old auth_navbar style? If yes, I think >> i

Re: [web2py] Re: gmaps.js

2012-06-15 Thread Paolo Caruccio
ode(address) > > *Incorrect* > (latitude, longitude) = geocode(address) > > > On Friday, June 15, 2012 2:51:23 PM UTC-5, Paolo Caruccio wrote: >> >> I see the correct url in first message, so post editing worked. The patch >> is good for me. >> >> Niph

Re: [web2py] Re: gmaps.js

2012-06-15 Thread Paolo Caruccio
I see the correct url in first message, so post editing worked. The patch is good for me. Niphlod, thank you Il giorno venerdì 15 giugno 2012 21:45:14 UTC+2, Niphlod ha scritto: > > tried to edit the post but seems that edits are not working. > the url is wrong, > > http://maps.googleapis

Re: [web2py] Re: gmaps.js

2012-06-15 Thread Paolo Caruccio
k so maybe this should be > corrected. > http://www.web2py.com/books/default/chapter/29/14?search=geo#Geocoding > > > On Friday, June 15, 2012 1:21:04 PM UTC-5, Paolo Caruccio wrote: >> >> Copying and pasting your code worked for me (see images). >> >>

Re: [web2py] Re: gmaps.js

2012-06-15 Thread Paolo Caruccio
(latitude, longitude) = geocode(address) > else: > (latitude, longitude) = ('','') > return dict(form=form, latitude=latitude, longitude=longitude) > > > > > > On Friday, June 15, 2012 10:42:04 AM UTC-5, Omi Chiba wrote: >> >

Re: [web2py] Re: gmaps.js

2012-06-15 Thread Paolo Caruccio
try to move http://maps.google.com/maps/api/js?sensor=true";> below {{extend 'layout.html'}} Il giorno venerdì 15 giugno 2012 16:59:43 UTC+2, Omi Chiba ha scritto: > > Can anyone point out what I'm doing wrong ? > > I downloaded gmaps.js and placed under static/js, then tried the follow

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

2012-06-15 Thread Paolo Caruccio
tons group). Il giorno giovedì 14 giugno 2012 22:55:38 UTC+2, Andrew ha scritto: > > Hi Paolo, > > Are you able to send a patch to Massimo for your layout and bootswatch > files. The bootstrap menu issue is holdnig up 2.0 and I think your changes > have addressed this. Would lov

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

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

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&#

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
t=request.now), Field('description', 'text', requires=[IS_TRIM(), IS_LENGTH(140,error_message=T('Warning, description too long'))]) ) paolo Il 14.06.2012 00:34 Massimo Di Pierro ha scritto: Do you have a db.define_table('pictures',...

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
able=False ), Field("desc_de",'reference description', readable=False, writable=False ), Field("desc_es",'reference description', readable=False, writable=False ), Field("categories", 'list:reference route_c

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/mode

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() Rega

[web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
ing ProgrammingError: 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

[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

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("acontro

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

2012-06-07 Thread Paolo Caruccio
d. 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 Caruccio wrote: >> >> Szimszon, >> >> is it a new appli

[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-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-05 Thread Paolo Caruccio
caret" class 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,

Re: [web2py] Re: Authentication failed & ajax call

2012-06-03 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 o

[web2py] Authentication failed & ajax call

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

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

2012-06-01 Thread Paolo Caruccio
x27;None') { > $.each(photos_files_list, function(i, val) { > $('ul.mw_list').append(val); //photos_files_list[i] > }); > }; > }); > > > {{if request.is_local:}} > {{=response.toolbar()}} > {{pass}} > > &g

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

2012-06-01 Thread Paolo Caruccio
> On Friday, June 1, 2012 11:01:08 AM UTC+12, Andrew wrote: >> >> Paolo, >> I agree, Perfect ! >> >> Great work. >> >

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

2012-05-31 Thread Paolo Caruccio
On Wednesday, May 30, 2012 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(){

[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

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

2012-05-30 Thread Paolo Caruccio
ook like buttons in all browsers now. >> >> You could change this back, of course, or even propose to web2py to have >> the old defaults back... >> >> Regards >> >> On Wednesday, May 30, 2012 7:42:07 AM UTC+2, Andrew wrote: >>> >>> Thanks Pa

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

2012-05-30 Thread Paolo Caruccio
sting. 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

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

2012-05-30 Thread Paolo Caruccio
uth_navbar a{ color:inherit; //color:expression(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.

<    1   2   3   4   5   6   7   >