[web2py] Re: [py4web] - how to disable some auth actions?

2020-03-28 Thread Paolo Caruccio
need. Translated with www.DeepL.com/Translator (free version) Il giorno sabato 28 marzo 2020 20:30:48 UTC+1, Massimo Di Pierro ha scritto: > > not possible yet. I can implement it easily but I would like to understand > some use cases. > > On Saturday, 28 March 2020 10:12:

[web2py] [py4web] - how to disable some ayth actions?

2020-03-28 Thread Paolo Caruccio
In py4web is there any way to disable some auth actions? I can't find anything in the code about this. In web2py this is possible via auth.settings.action_disabled For example: auth.settings.action_disabled=['register'] prevents the "register" action from working. Tank you. -- Resources: -

[web2py] is field representation changed from web2py 2.14.6?

2018-10-27 Thread Paolo Caruccio
with this model (very simplified) db.define_table('table1', Field('first_field' ), format='%(first_field)s' ) db.define_table('table2', Field('field_one' ), Field('field_two','referenc

[web2py] Re: web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-23 Thread Paolo Caruccio
This issue has been already fixed in trunk. Please see: https://github.com/web2py/web2py/issues/1828 https://github.com/web2py/web2py/issues/1886 If you don't want to download the updated version of layout.html file and prefer to manually correct the problem please see https://groups.google.c

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-15 Thread Paolo Caruccio
Leonel's suggestion worked but I had to set the key within headers dictionary and column name within column lists of SQLTABLE to '''GROUP_CONCAT("RISCHI"."rischio", \', \')''' However, it seems to me that pyDal accepts SQL strings but it is SQLTABLE that doesn't handle them as before. So I hav

[web2py] Re: SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-14 Thread Paolo Caruccio
configurations. Il giorno giovedì 15 marzo 2018 00:00:01 UTC+1, Dave S ha scritto: > > > > On Wednesday, March 14, 2018 at 3:32:46 PM UTC-7, Paolo Caruccio wrote: >> >> The relevant code that generates the issue is: >> > [...] > >> The traceb

[web2py] SQL strings and SQLTABLE issue in last web2py release. Is there a solution for it?

2018-03-14 Thread Paolo Caruccio
The relevant code that generates the issue is: rischi_della_mansione = "GROUP_CONCAT(rischio, ', ')" l = [db.RISCHI_MANSIONE.on( (db.RISCHI_MANSIONE.mansione_ID==db.MANSIONE.id)), db.RISCHI.on( (db.RISCHI.id==db.RISCHI_MANSIONE.rischio_ID)) ]

[web2py] Re: mobile menu not working?

2018-01-26 Thread Paolo Caruccio
Please try the solution in https://github.com/web2py/web2py/issues/1828 Regards. Il giorno venerdì 26 gennaio 2018 18:18:18 UTC+1, Yi Liu ha scritto: > > Dear all, > > I have latest web2py running at trialert.com > > Both my barebone app and welcome app at trialert.com/welcome have problem > wi

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread Paolo Caruccio
Regarding the collapsed navbar issue, in the web2py 2.16.1 welcome layout.html page is missing the id on the navbar-collapse Il giorno sabato 23 dicembre 2017 14:12:46 UTC+1, lucas ha scritto: > > as I reported when the screen isn't wide enough, it will default to the > pull down button, that

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread Paolo Caruccio
In the web2py 2.16.1 welcome layout.html page, in order to move to the right the login dropdown, you could apply the bootstrap 4 class mr-auto to the form in navbar and add the class dropdown-menu-right to the dropdown Il giorno sabato 23 dicembre 2017 14:12:46 UTC+1, lucas ha scritto: >

[web2py] Re: image alt text on hover

2017-12-23 Thread Paolo Caruccio
use the "title attribute" More info about html "title" https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title Il giorno sabato 23 dicembre 2017 11:21:50 UTC+1, Dave S ha scritto: > > I'd like to h

[web2py] Re: menu li > a padding in case of button

2017-12-05 Thread Paolo Caruccio
Maybe .web2py-menu li:nth-of-type(2) {padding:0;} Il giorno martedì 5 dicembre 2017 09:35:32 UTC+1, Annet ha scritto: > > Hi Paolo, > > Thanks for your reply. The problem is that the padding is on the item > not the btn one. > My menu is rendered as follows: > > >href="/init/default/sea

[web2py] Re: menu li > a padding in case of button

2017-12-03 Thread Paolo Caruccio
To remove it, you could try following css rules in an external css file loaded after bootstrap css files .web2py-menu span.btn{padding:0;} Il giorno sabato 2 dicembre 2017 18:47:55 UTC+1, Annet ha scritto: > > I have the following menu: > > response.application_menu = [ > (CAT(I(_class="

[web2py] Re: Formatting numbers in view

2017-10-30 Thread Paolo Caruccio
If it is feasible for you, you could use *Intl.NumberFormat* ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) javascript Internationalization API. Il giorno lunedì 30 ottobre 2017 18:59:27 UTC+1, Gualter Portella ha scritto: > > Dear all, > > I

[web2py] Re: Alias column names (akin to AS clause) in db select

2017-08-28 Thread Paolo Caruccio
.foo==db.Table2.foo).select(db.Table1.foo, db.Table2.blah) If you want alias fields in a query without joins you could write rows = db(db.Table2.id>0).select('bar AS blah') Il giorno lunedì 28 agosto 2017 08:50:20 UTC+2, Brendan Barnwell ha scritto: > > On Monday,

[web2py] Re: Admin UI - Error ticket less information in the latest web2py releases

2017-08-16 Thread Paolo Caruccio
ticket open https://github.com/web2py/web2py/issues/1740 Il giorno mercoledì 16 agosto 2017 04:58:17 UTC+2, Massimo Di Pierro ha scritto: > > very weird. Can you open a ticket about this? > > On Tuesday, 15 August 2017 10:19:42 UTC-5, Paolo Caruccio wrote: >> >> Hello e

[web2py] Admin UI - Error ticket less information in the latest web2py releases

2017-08-15 Thread Paolo Caruccio
Hello everyone. In a view, I have a trivial NameError: name 'fattura' is not defined due to {{for ft in fatture:}} {{=fattura.id}} {{pass}} But the Error Ticket returned by web2py is different depending on the development environment. *Case 1 (best)* SO: windows 8 Web2py: Version 2.14.6-stable

[web2py] Re: posibility to disable the mobile admin interface

2017-08-15 Thread Paolo Caruccio
th new version :( > > On Tuesday, August 15, 2017 at 12:40:29 AM UTC+2, Paolo Caruccio wrote: >> >> My known way. >> >> In the "web2py/applications/admin/controllers/default.py" file at line >> nr.3 set EXPERIMENTAL_STUFF to False >> >> Y

[web2py] Re: posibility to disable the mobile admin interface

2017-08-14 Thread Paolo Caruccio
My known way. In the "web2py/applications/admin/controllers/default.py" file at line nr.3 set EXPERIMENTAL_STUFF to False You must apply the above change every time you update web2py. Il giorno lunedì 14 agosto 2017 12:50:39 UTC+2, Vic Ding ha scritto: > > I know this is pretty old post, but i

[web2py] Re: Change value of select

2017-08-12 Thread Paolo Caruccio
Have you tried with javascript? If the selectbox has an id should be simple accomplish your goal. For example: document.getElementById('listofvalues').value='3'; sets as selected the option with value = '3' in the following selectbox. Value 11 Value 22 Value 33 V

[web2py] Re: multiple form in 1 page using tab

2017-08-12 Thread Paolo Caruccio
Maybe the issue is due to class 'active' in the view. To be honest, I did not fully understand your question but the following code - for example - should show the tab with the submitted form. *controllers/default.py* def report(): query = (db.table_0.id > 0) #redirect_url_0 = 'report_de

[web2py] Re: Can't load form using {{=form}} only by {{=LOAD('default','def')}} or submit the form.

2017-08-06 Thread Paolo Caruccio
Do you have a file named "order.load" or "order.html" in views/default folder? LOAD helper needs a view that does not extend the layout. Sample of content default order.load (please note the absence of {{extend 'layout.html'}}): {{=order}} More on LOAD helper in http://web2py.com/books/de

[web2py] Re: Alias column names (akin to AS clause) in db select

2017-07-31 Thread Paolo Caruccio
Maybe the web2py book could help you: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=with_alias#Self-Reference-and-aliases Il giorno lunedì 31 luglio 2017 00:19:11 UTC+2, Brendan Barnwell ha scritto: > > On Monday, May 29, 2017 at 11:30:53 PM UTC-7, Brend

[web2py] Re: Semantic UI for SQLFROM.grid

2017-06-04 Thread Paolo Caruccio
Yes it's diffcult but not impossible. With CSS preprocessors, for example, we can write adaptive rules by extending a class defined in choiced css library to a HTML element generated by web2py having a different css class or a specific identifier. web2py, in my opinion, it's flexibile enough in

[web2py] Re: How do I change the sqlform button location

2017-05-12 Thread Paolo Caruccio
For label within its related input, you could use placeholder HTML attribute. In order to accomplish this you could customize the field widget. For example, the widget for the password field of auth_user table could be db.auth_user.password.widget=lambda f, v: SQLFORM.widgets.password.widget(f

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Paolo Caruccio
You could try with css. 1. assign to the component trigger a specific class for example "link_with_loader" A(IMG(_src=image), _href=URL('default', 'getit'), _class="link_with_loader", user_signature=True, cid=request.cid) 2. since web2py adds the "disabled" class to the component trigger whe

[web2py] Re: Customising Calendar widgets in Start Date and End date of SmartGrid

2017-01-16 Thread Paolo Caruccio
Below link should work yet. http://sourceforge.net/projects/jscalendar/ Within the file you'll find the refrence and other original resources about jscalendar

[web2py] Re: required=True

2016-12-28 Thread Paolo Caruccio
In addition to the Anthony's answer , if you want also experiment simple native client side validation for web form, you could customize the field widget Field('myfield', 'string', requires=IS_NOT_EMPTY(), widget=lambda f,v: SQLFO

[web2py] Re: table headers with style

2016-12-08 Thread Paolo Caruccio
tbl1.b', 'tbl1.c', 'tbl1.d'], _class="table table-striped myeheaders")}} Il giorno giovedì 8 dicembre 2016 08:03:53 UTC+1, Dave S ha scritto: > > > > On Wednesday, December 7, 2016 at 3:02:10 PM UTC-8, Paolo Caruccio wrote: >> >&g

[web2py] Re: table headers with style

2016-12-07 Thread Paolo Caruccio
eloper.mozilla.org/en-US/docs/Web/CSS/Specificity https://developer.mozilla.org/it/docs/Web/CSS/Universal_selectors Il giorno mercoledì 7 dicembre 2016 09:33:20 UTC+1, Dave S ha scritto: > > > > On Sunday, December 4, 2016 at 2:48:15 AM UTC-8, Paolo Caruccio wrote: >> >>

[web2py] Re: table headers with style

2016-12-04 Thread Paolo Caruccio
The correct sintax for the css .class selector is .class { css declarations; } so .myeheaders th { padding-right: 2em} ; should work. Il giorno domenica 4 dicembre 2016 05:32:55 UTC+1, Dave S ha scritto: > > I'm finding that SQLTABLE, though mostly well-behaved, doesn't properly > tak

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-12-02 Thread Paolo Caruccio
My previous answer was too short. I was in a hurry. So I want elaborate it more. Martin wrote to have an alignment problem between the label and the text that SQLFORM generates when the field is not writable. Web2py in this context gives to the label of not writable field the css class "readonly

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-12-01 Thread Paolo Caruccio
Try with label.readonly~div{padding:7px;} Il giorno lunedì 21 novembre 2016 16:42:54 UTC+1, Martin de Groot ha scritto: > > In a SQLForm all widget-controls of writable fields are nicely, correctly > vertically aligned with the preceding label. > > However, when one adds db.table.field.writa

Re: [web2py] Multiple connections/ databases with same app

2016-03-13 Thread Paolo Caruccio
#x27; I see the same issue. > > > On Mar 13, 2016, at 4:08 AM, Paolo Caruccio > wrote: > > Try to replace dash ("-") with uderscore ("_") in the variable names i.e. > db_cats > > > Il giorno sabato 12 marzo 2016 15:10:33 UTC+1, Shayn Raney ha sc

Re: [web2py] Multiple connections/ databases with same app

2016-03-13 Thread Paolo Caruccio
Try to replace dash ("-") with uderscore ("_") in the variable names i.e. db_cats Il giorno sabato 12 marzo 2016 15:10:33 UTC+1, Shayn Raney ha scritto: > > I would like to implement something like this to use two sqlite3 > databases. I've tried to create the following within a new model via t

[web2py] Re: checkbox with label on the left side

2016-03-07 Thread Paolo Caruccio
In my sqlforms, I solved the issue with css. Prerequisite 1: formstyle = divs Prerequisite 2: you have to know the id of the field outer div i.e. that containing the div.w2p_fl and the div.w2p_fw Generally it is build as tablename_fieldname__row (for more on this subject see

Re: [web2py] Re: How do I select and output multiple checkboxes

2016-01-18 Thread Paolo Caruccio
y, January 16, 2016 at 12:01:03 PM UTC-5, Paolo Caruccio wrote: >> >> The issue could be simply solved by using css. >> >> For example by adding the below code in your css file: >> >> .web2py_checkboxeswidget.horizontal { >> display: -ms

Re: [web2py] Re: How do I select and output multiple checkboxes

2016-01-16 Thread Paolo Caruccio
The issue could be simply solved by using css. For example by adding the below code in your css file: .web2py_checkboxeswidget.horizontal { display: -ms-flexbox; display: -webkit-flex; display: flex; } .web2py_checkboxeswidget.h

Re: [web2py] Re: How to add CSS classes to auth.login custom?

2014-04-18 Thread Paolo Caruccio
Maybe this could be useful https://groups.google.com/d/msg/web2py/xTQ9oQVu0rQ/JPUFxFnsR8MJ Il giorno venerdì 18 aprile 2014 19:10:28 UTC+2, Chris ha scritto: > > That could work. Seems a bit uncouth, not to mention if jQuery isn't > loaded that class wouldn't be added, and also that this would a

[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-14 Thread Paolo Caruccio
t I was wondering if there was something I was overlooking. > > On Sunday, April 13, 2014 1:46:32 PM UTC-4, Paolo Caruccio wrote: > >> With overflow:auto the scrollbars (vertical and horizontal) are visible >> only when it is necessary. >> Making scrollbars visible

[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-13 Thread Paolo Caruccio
scritto: > > Sorry you're right it's auto not hidden that was a typo. But why not make > it visible? > > On Sunday, April 13, 2014 5:37:53 AM UTC-4, Paolo Caruccio wrote: >> >> If you mean the view "*appadmin/select/db?query=your query"* actually >&

[web2py] Re: Why does appadmin have css overflow: hidden in database results?

2014-04-13 Thread Paolo Caruccio
If you mean the view "*appadmin/select/db?query=your query"* actually the table with the resulting rows is wrapped in a div with "overflow:auto". Therefore if you have more columns than the width of the browser a horizontal scrollbar will be shown and the table will scroll horizontally. The hori

[web2py] Re: Why does LINK work and STYLE doesn't?

2014-04-07 Thread Paolo Caruccio
Well, I think that style element with the src attribute in order to link an external stylesheet works only in XHTML2. Definitely it does not work when html5 doctype is applied and the current welcome app layout is in html5. I will open an issue, asking to correct the example in the book. Il gio

[web2py] Re: Bootstrap3 package - help to test

2014-03-16 Thread Paolo Caruccio
Hi Dmitry, reCaptcha was not included in the package. I will use your code in the next version of the package. Thank you. Il giorno domenica 16 marzo 2014 03:12:43 UTC+1, Dmitry Rodetsky ha scritto: > > Ok it seems I got this thing fixed up. The problem was in the > bootstrap3.py module. I am

[web2py] Re: how to resize an expand_one rendered content

2014-03-09 Thread Paolo Caruccio
A possible solution could be the following: 1) wrap the iframe with a div with class "w2p-video-container" 2) set your css rules by targeting div.w2p-video-container>iframe For example: in the view {{=XML(expand_one('http://www.youtube.com/watch?v=7yvt2Pt6LRA',cache.ram('mycache',lambda:dict(),

[web2py] Re: Complex css layout -- is web2py the right choice?

2014-03-08 Thread Paolo Caruccio
dar.css and web2py.css were being shown. However, when I started > editing the proper custom_layout.html the other css files came through. It > was a complete mistake on my end. > > > > On Saturday, March 8, 2014 3:26:04 PM UTC-5, Paolo Caruccio wrote: >> >> The follo

[web2py] Re: Complex css layout -- is web2py the right choice?

2014-03-08 Thread Paolo Caruccio
roubleshooting I figured out the calendar.css was being > pulled from web2py_ajax.html > > Any idea on why the code above wouldn't work in the layout_custom.html? I > REALLY appreciate your help. This has made such a difference! > > On Saturday, March 8, 2014 9:08:29 AM UTC-5, P

[web2py] Re: Complex css layout -- is web2py the right choice?

2014-03-08 Thread Paolo Caruccio
It's just a demo. The code is not tested. You should consider this only as a very basic reference. The filenames here reported are only conventional you should use yours. 1) put the css files of the template in static/css folder of your web2py application; 2) put the js files of the template in

[web2py] Re: Using ZURB Foundation?

2014-02-27 Thread Paolo Caruccio
It will be ready in few days. I'm doing the final checks. Il giorno giovedì 27 febbraio 2014 21:23:41 UTC+1, Timo Bahner ha scritto: > > How is your foundation package coming along? > > Timo > > On Thursday, December 26, 2013 6:15:56 AM UTC+1, Timo Bahner wrote: >> >> Hi. Is it possible to use ZU

[web2py] Re: CSS table width not limited as wished

2014-02-26 Thread Paolo Caruccio
C+1, Dominique ha scritto: >>> >>> Thank you Paolo. >>> It works perfectly on the test model. >>> >>> But not on my app, for whatever reason... >>> I'll investigate that later... >>> >>> Anyway thank you very much >>> D

[web2py] Re: CSS table width not limited as wished

2014-02-26 Thread Paolo Caruccio
014 18:04:08 UTC+1, Dominique ha scritto: > > Thank you Paolo. > It works perfectly on the test model. > > But not on my app, for whatever reason... > I'll investigate that later... > > Anyway thank you very much > Dominique > > Le mardi 25 février 2014 20:01:

[web2py] Re: CSS table width not limited as wished

2014-02-25 Thread Paolo Caruccio
Please try with: table#t1 input{width:auto;} Il giorno martedì 25 febbraio 2014 18:45:31 UTC+1, Dominique ha scritto: > > Unfortunately, no ... > > Le mardi 25 février 2014 18:29:38 UTC+1, Massimo Di Pierro a écrit : >> >> I think the problem may be the size of the INPUT. Try add this in style >

[web2py] Re: Strange artifact

2014-02-07 Thread Paolo Caruccio
Please pack a post a w2p app with the only code for grid. I will test it in IE10. I can't install IE11 on windows8. Maybe the issue is related to css rules applied to that DOM element but without code I'm not able to help you. Il giorno venerdì 7 febbraio 2014 05:16:10 UTC+1, horridohobbyist ha

[web2py] Re: remove the tags of SQLFORM.grid?

2014-01-26 Thread Paolo Caruccio
In HTML4 specification ( http://www.w3.org/TR/html401/struct/tables.html#edef-COL) the *col* element is empty and for HTML5 (http://www.w3.org/TR/html5/syntax.html#void-elements) it is void. This means that the element hasn't the end tag. Therefore +1 for the patch that Anthony has proposed. F

[web2py] Re: Bootstrap 3 custom checkbox widget

2014-01-23 Thread Paolo Caruccio
What about return DIV(TAG[''](*opts, **attr)) Il giorno giovedì 23 gennaio 2014 19:45:20 UTC+1, Annet ha scritto: > > I have the following custom checkboxes widget: > > > def bs3checkboxeswidget(field, value, **attributes): > > if isinstance(value, (list, tuple)): > values = [str(v)

[web2py] Re: Static form control in case of read only field

2014-01-20 Thread Paolo Caruccio
Annet, thank you for your comments. About the checkboxes and radio controls please note that the package works since Version 2.8.2-stable+timestamp.2013.12.17.16.49.17 of web2py. In the previous versions the related widget code in gluon/sqlhtml.py was different. For the other suggestions, I found

[web2py] Re: Static form control in case of read only field

2014-01-20 Thread Paolo Caruccio
lution. > > I hope I provided you with enough information to help me solve the problem. > > > Kind regards, > > Annet > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: Change color of a button

2014-01-19 Thread Paolo Caruccio
web2py assigns the class "btn" to the form input[type="submit"] (seehttps://github.com/web2py/web2py/blob/master/applications/welcome/static/js/web2py.js#L79) so the button style is controlled by bootstrap css that adds a background-image. A simple workaround could be: def x(): return di

[web2py] Re: db modul creating question types

2014-01-10 Thread Paolo Caruccio
My suggestion: First we change the 'question' table definition as follows db.define_table('question', Field('survey', db.survey), Field('title', length=200), Field('created', 'datetime', default=request.now, writable=False), Field('question_type', 'string', default='text'), Fi

Re: [web2py] styling widget divs

2014-01-07 Thread Paolo Caruccio
like a easy one, why not just commit the change on github? >> >> :) >> >> Richard >> >> >> On Mon, Jan 6, 2014 at 4:22 PM, Paolo Caruccio wrote: >> >>> That was the solution I proposed. >>> >>> Il giorno lunedì 6

Re: [web2py] styling widget divs

2014-01-06 Thread Paolo Caruccio
That was the solution I proposed. Il giorno lunedì 6 gennaio 2014 22:10:04 UTC+1, Richard ha scritto: > > Could the CAT just be replaced by another DIV? > > Richard > > > On Mon, Jan 6, 2014 at 3:56 PM, Paolo Caruccio > > > wrote: > >> The radiowidget

Re: [web2py] styling widget divs

2014-01-06 Thread Paolo Caruccio
The radiowidget function returns https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L384 parent(*opts, **attr) so the kargs solution of Richard works but not when style is 'divs' because the parent is 'CAT' https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L364 and http

[web2py] Re: Happy New Year everybody!

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

[web2py] Re: db modul creating question types

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

[web2py] Re: db modul creating question types

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

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

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

[web2py] Re: Using ZURB Foundation?

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

[web2py] Re: help-block in Bootstrap forms

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

[web2py] Re: help-block in Bootstrap forms

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

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

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

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

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

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

2013-12-04 Thread Paolo Caruccio
... > > I am curious where is it from though... > > :) > > Richard > > > On Wed, Dec 4, 2013 at 4:01 PM, Paolo Caruccio > > > wrote: > >> Maybe this helps >> https://groups.google.com/d/msg/web2py/z_vjoBM9WlU/FLw7MCQIViMJ >> >>

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

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

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

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

[web2py] Re: requires=IS_IN_SET translation

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

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

2013-11-14 Thread Paolo Caruccio
erived from >> layout.html]<https://groups.google.com/forum/#!topic/web2py/3NmrocjbwzM> >> >> I will do some experiments and report back. >> >> Thanks again, Paolo. >> >> Love and peace, >> >> Joe >> >> On Monday, November 11, 2013 4:53

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[web2py] Re: Bootstrap's nav-collapse

2013-10-24 Thread Paolo Caruccio
In order to clarify my previous post if you replace the line 83 in layout.html with and remove inline css style from line 76, the nav will collapse normally also on desktop. Said that, in order to generate dinamically a menu I would do in this way (pseudo code to explain a conceptual idea):

[web2py] Re: Bootstrap's nav-collapse

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

Re: [web2py] Bootstrap 2.2.2 / 2.3.2

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

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

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

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

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

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

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

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

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

[web2py] Re: Custom Style of a textarea.

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

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

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

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

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

[web2py] Re: .ics file name

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

[web2py] Re: pie.htc and web2py

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

[web2py] Re: web2py Italy

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

Re: [web2py] request.url with scheme

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

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

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

[web2py] Re: Adding files casually

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

[web2py] Re: Logged in dropdown links

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

  1   2   3   4   >