[web2py] Re: Some trouble with the oracle driver

2014-12-20 Thread Paolo Valleri
My guest is the alias name 'group', have you already tried with a different name? Paolo On Sunday, December 21, 2014 1:34:21 AM UTC+1, Manuele wrote: I get this traceback error: Traceback (most recent call last): File /home/manuele/web2py/gluon/restricted.py, line 224, in restricted

Re: [web2py] Re: SQLFORM.grid search with custom request.vars

2014-12-19 Thread Paolo Valleri
Hi, I create a PR https://github.com/web2py/web2py/pull/569 for this issue Paolo 2014-11-28 17:10 GMT+01:00 Alen Cerovic cerovic.a...@gmail.com: bump, any news? This is really anoying not to be able to preserve vars as we can args Dana petak, 24. listopada 2014. 21:47:38 UTC+2, korisnik

[web2py] Re: bug issue in query serialization

2014-12-19 Thread Paolo Valleri
the result (a list) into a set. If this approach is a problem, we've to build a custom object (ex: {'type':'set', 'value': [1,2]} as explained here: http://stackoverflow.com/a/8230505 Paolo On Friday, December 19, 2014 2:19:45 PM UTC+1, Manuele wrote: https://code.google.com/p/web2py/issues

[web2py] Re: Connect to Sybase ASE 15.7

2014-12-18 Thread Paolo Valleri
Which version of web2py are you using? I don't have the Sybase.py file in gluon. Have you split mssql.py ? Please post some code and add a print statement for the dns variable in SysbaseAdapter in order to understand what is going wrong. Paolo On Thursday, December 18, 2014 9:51:25 AM UTC+1

[web2py] Re: removing items from cache not working

2014-12-16 Thread Paolo Valleri
Hi Alex, I think this is the commit you are looking for https://github.com/web2py/web2py/commit/0dbdf8c676547071d608f800f72d7c3d0aa6ebda Only the first element matching the regex is deleted. I'd revert that commit, and it'd be nice to add a test to better check that issue Paolo On Tuesday

Re: [web2py] Re: removing items from cache not working

2014-12-16 Thread Paolo Valleri
I will fix it later today On Dec 16, 2014 1:43 PM, Alex mrauc...@gmail.com wrote: exactly, that's the issue. Now it makes sense why it worked on very rare occasions. A test for this use case would be a good idea. here is the code in 2.4.6 which runs fine: r = re.compile(regex)

[web2py] Re: web2py on a dedicated server

2014-12-11 Thread Paolo Valleri
My suggestion is to use nginx with uwsgi, I use it on VMs hosted on ip-exchange On Thursday, December 11, 2014 8:53:04 PM UTC+1, Gael Princivalle wrote: Hello all. One of my customers have took a 11 dedicated server and want to install inside web2py. I've got only a web2py Webfaction

[web2py] Re: json insertion error

2014-12-10 Thread Paolo Valleri
Hi, the postgres adapter has been updated since 2.9.4, in addition at least one patch involves json support, see here https://github.com/web2py/web2py/commit/c4a4ee27c42e4e3b2458981888d6db6400657006 I suggest updating web2py Paolo On Wednesday, December 10, 2014 5:52:46 PM UTC+1, Manuele

[web2py] Re: Postgresql case sensitive field

2014-12-09 Thread Paolo Valleri
try to set ignore_field_case and entity_quoting to True., see http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Database-quoting-and-case-settings--entity_quoting--ignore_field- Paolo On Tuesday, December 9, 2014 2:58:05 PM UTC+1, Leonardo Silvano wrote: I have

[web2py] Re: PostgreSQL migrate / fake_migrate_all failure with relation does not exists

2014-12-01 Thread Paolo Valleri
Hi Tom, wiki's tables are not present. You have to include them during the migration, probably you have defined the wiki object in a controller? Paolo On Saturday, November 29, 2014 6:22:00 PM UTC+1, Tom Øyvind Hogstad wrote: My migrations suddenly failed with Error: class

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-11-27 Thread Paolo Valleri
That issue has been fixed in trunk. see https://github.com/web2py/web2py/commit/7e0e7eb6c861bb0a248dbd3ed0af121175a8d032 I suggest you to try trunk Paolo On Thursday, November 27, 2014 2:01:22 PM UTC+1, Alex wrote: I just found out that ilike doesn't work. from the code (2.9.11): def

[web2py] Re: git integration application

2014-11-22 Thread Paolo Valleri
Hi, looking at the code: https://github.com/web2py/web2py/blob/master/applications/admin/controllers/default.py#L250 the repository url must finish with '.git' Paolo On Thursday, November 20, 2014 1:03:41 AM UTC+1, Ian Bell wrote: So here's the basic problem. I have pushed our web2py

[web2py] Re: Minor suggestion for web editor

2014-10-31 Thread Paolo Valleri
jump directly to the line where the method is defined? Paolo Il giorno venerdì 31 ottobre 2014 12:38:27 UTC+1, Ramos ha scritto: Hello i find myself a lot of times using the web editor for minor corrections There is already the Exposes: line above the code but does not allow to follow

Re: [web2py] Re: Web Editor Blank Screen

2014-10-31 Thread Paolo Valleri
something has not been loaded correctly, can you check the chrome developer console? Il giorno venerdì 31 ottobre 2014 15:02:09 UTC+1, Trevor Strauss ha scritto: Thanks to whoever denied my last question. Here it is...plus broke something today which allow me to view the file but have no

[web2py] Re: language and localization development

2014-10-23 Thread Paolo Valleri
Hi, try T.set_current_languages('it') see http://web2py.com/books/default/chapter/29/04/the-core#Determining-the-language Paolo On Thursday, October 23, 2014 1:47:11 PM UTC+2, Manuele wrote: Hi, maybe I'm wrong but it seams that during development I have to write messages in english

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-10-17 Thread Paolo Valleri
as field type. Paolo On Wednesday, October 15, 2014 6:07:49 PM UTC+2, ArnvShrma wrote: Hi Niphlod, I am a newbie to unittests, Eden unittests, postgis, postgresql and its drivers which is why I had come asking for help. Anyhow, I appreciate your input. Many thanks On 15 October 2014 03:55

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Paolo Valleri
Open a ticket on google code On Thursday, October 16, 2014 11:18:53 AM UTC+2, Eric wrote: Hi All, When I press the 'empty cache' button on the Appadmin I get a nice error: Traceback (most recent call last): File /home/eric/Projects/Web2Py/site/gluon/restricted.py, line 224, in

[web2py] Re: Changes to web2py.js - a bug(?) and request

2014-09-17 Thread Paolo Valleri
Hi, I'd suggest to set url='' to fix your problem. While for second problem you should set ajax_trap=True for the LOAD helper. See http://web2py.com/books/default/chapter/29/12/components-and-plugins#LOAD-signature Paolo On Wednesday, September 17, 2014 9:09:47 PM UTC+2, Ide wrote: Hi

Re: [web2py] Re: Web2py, nginx, installation on Raspberry Pi

2014-08-26 Thread Paolo Valleri
by pip and install the one from the raspbian repository (it comes with the /etc/init.d/... script). In this case, I suggest to install uwsgi-emperor and uwsgi-plugin-python using apt-get, add the line 'plugin=python' in web2py.ini and place that file in /etc/uwsgi-emperor/vassals. Paolo 2014-08-24 20

[web2py] Re: Web2py, nginx, installation on Raspberry Pi

2014-08-24 Thread Paolo Valleri
The script you mentioned is based on upstart but on the raspberry-pi the init script are handled by sysvinit. So that, I'd say that uwsgi is not running? Try to run it manually: sudo uwsgi --master --die-on-term --emperor /etc/uwsgi --logto /var/log/ uwsgi/uwsgi.log Paolo On Sunday, August 24

Re: [web2py] Re: _before_* with SQLFORM.grid

2014-08-19 Thread Paolo Valleri
a simple way to place the error_message just 'ones', otherwise we have to add a parameter in all different forms (grid, smartgrid, sqlform etc). Paolo 2014-08-18 22:36 GMT+02:00 Anthony abasta...@gmail.com: On Monday, August 18, 2014 11:55:43 AM UTC-4, Paolo Valleri wrote: The first issue

[web2py] _before_* with SQLFORM.grid

2014-08-18 Thread Paolo Valleri
but even in this case the user will lose the form with the filled fields. From my point of view, a possible alternative scenario would be to 'stay' in the form and to show to the user a general error message on top of the form. Any idea? Paolo -- Resources: - http://web2py.com - http://web2py.com

Re: [web2py] Re: _before_* with SQLFORM.grid

2014-08-18 Thread Paolo Valleri
The first issue is that, I don't know a simple way (using sqlform.grid) to return to the form even if the validation has passed successfully. The second is to display the error message. Maybe we can add an error_message parameter to _before_* ? Paolo 2014-08-18 17:35 GMT+02:00 Anthony abasta

[web2py] unique=True for time on sqlite

2014-07-08 Thread Paolo Valleri
message when the I try to insert a new record with a date already present in the db. It worked on postgres, on sqlite I got a ticket error instead saying: UNIQUE constraint failed: user_table.birthday is it possible to support unique=True on sqlite? Paolo -- Resources: - http://web2py.com - http

Re: [web2py] unique=True for time on sqlite

2014-07-08 Thread Paolo Valleri
What is odd to me is that,on postgres the validator works as expected while on sqlite it doesn‘t and it is the backend itself that raises the exception. On Jul 8, 2014 6:43 PM, Anthony abasta...@gmail.com wrote: Are you saying you want an error message to appear on the form? For that, you need

Re: [web2py] unique=True for time on sqlite

2014-07-08 Thread Paolo Valleri
as expected even on sqlite. What do you think if we make it as default for date/time fields when the backend is sqlite? Paolo On Tuesday, July 8, 2014 7:04:44 PM UTC+2, Paolo Valleri wrote: What is odd to me is that,on postgres the validator works as expected while on sqlite it doesn‘t

[web2py] Re: Brainstorming

2014-06-17 Thread Paolo Valleri
Just to name an other one, I've used backbonejs for a project, it was the right choice for my purposes. it is very easy to develop a client side app if you have a rest back-end. http://backbonejs.org/ Paolo On Tuesday, June 17, 2014 8:48:03 AM UTC+2, Andrew W wrote: I want to use

[web2py] Field.Lazy with SQLFORM.grid

2014-05-29 Thread Paolo Valleri
/home/pvalleri/src/web2py/gluon/sqlhtml.py, line 2024, in grid columns = [f for f in fields if f.tablename in tablenames] AttributeError: 'FieldMethod' object has no attribute 'tablename' Paolo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] cpdb sqlite to mysql issue

2014-05-15 Thread Paolo Valleri
EXCEPTION: could not make a copy of the database global name 'DAL' is not defined I guest the parameter are right, I took them from the book. Paolo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

Re: [web2py] Re: SQLFORM.grid search with custom request.vars

2014-05-08 Thread Paolo Valleri
I opened an issue https://code.google.com/p/web2py/issues/detail?id=1931 On Wednesday, May 7, 2014 3:24:38 PM UTC+2, Anthony wrote: On Wednesday, May 7, 2014 4:00:33 AM UTC-4, Paolo Valleri wrote: The workaround of the hidden fields seems to be much more complex for this simple issue

Re: [web2py] Re: SQLFORM.grid search with custom request.vars

2014-05-07 Thread Paolo Valleri
, a user is not able to bookmark the search result. Paolo 2014-05-06 20:55 GMT+02:00 Anthony abasta...@gmail.com: I think when the browser makes the request, it strips any existing query string from the form action and replaces it with a query string containing the form data. A workaround would

Re: [web2py] SQLFORM.grid search with custom request.vars

2014-05-06 Thread Paolo Valleri
? Paolo 2014-05-05 17:30 GMT+02:00 Richard Vézina ml.richard.vez...@gmail.com: Maybe there is a need for vars property that could work similarily as args of SQLFORM.grid? Richard On Mon, May 5, 2014 at 8:28 AM, Paolo Valleri paolo.vall...@gmail.comwrote: Dear all, I've implemented

[web2py] SQLFORM.grid search with custom request.vars

2014-05-05 Thread Paolo Valleri
request.vars are erased. Actually the action url of the form is correct it has all request.vars variable plus the signature, when I type search all of them are replaced by the variable 'keywords' Is this the expected behavior for SQLFORM.grid search? Regards Paolo -- Resources: - http://web2py.com

Re: [web2py] Re: scheduler: task concurrency

2014-05-03 Thread Paolo Valleri
? I agree with you, this is not a corner case, and to be honest, I also need tasks dependencies for other elaborations :P Paolo 2014-05-02 21:21 GMT+02:00 Niphlod niph...@gmail.com: What's the general use case ? There are a bunch of simple different things you can do right in the current

[web2py] scheduler: task concurrency

2014-05-02 Thread Paolo Valleri
to avoid parallel executions: B will never start to run 'test'. That behavior can be reached by adding a new option that defines if a task can be executed in concurrency or not. Thoughts? Paolo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

Re: [web2py] Re: scheduler: task concurrency

2014-05-02 Thread Paolo Valleri
I don't think about arbitrary workflow, I would only avoid concurrent execution of the same task. Paolo 2014-05-02 11:52 GMT+02:00 Niphlod niph...@gmail.com: let's say that parallel is the default behaviour when you need to run a task to avoid parallel (for speech sake, let's turn

Re: [web2py] Re: scheduler: task concurrency

2014-05-02 Thread Paolo Valleri
yes, the function name identifies the same task Paolo 2014-05-02 14:19 GMT+02:00 Niphlod niph...@gmail.com: how do you identify the same task ? the same function name ? On Friday, May 2, 2014 12:19:53 PM UTC+2, Paolo Valleri wrote: I don't think about arbitrary workflow, I would only

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

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

2014-04-14 Thread Paolo Caruccio
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 only when you need them is for aesthetic reasons. Indeed not all the tables have a great number of columns. Il giorno

[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

[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 the table with the resulting rows is wrapped in a div

[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

[web2py] Re: memory leak?

2014-04-02 Thread Paolo Valleri
I run nearly the same example: def f(): a=list(range(10)) return 'ok' After about 200 downloads the web2py process grew up to 100M. Tested on a system with 8Gb ram, ubuntu 12.04 paolo On Wednesday, April 2, 2014 5:57:51 AM UTC+2, Rick Ree wrote: Ubuntu 12.04 and 13.10. I'm running

[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: upgrade clear session

2014-03-12 Thread Paolo Valleri
Open an issue on google code in order to track its development. if you want, feel free to make a proposal as well. Paolo On Wednesday, March 12, 2014 1:13:11 AM UTC+1, 黄祥 wrote: hi, i've often seen people have a problem with web2py upgrade related with session. just an idea, is it possible

Re: [web2py] Re: Making the DAL orders-of-magnitude faster...

2014-03-12 Thread Paolo Valleri
This is the commit https://github.com/web2py/web2py/commit/5f1caf668b2a7d856c242f5866e10dfa77e133a8 I don't know if there are other changes Paolo 2014-03-12 14:32 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: I believe it was. On Wednesday, 12 March 2014 04:43:52 UTC-5, David

[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-containeriframe For example: in the view div class=w2p-video-container

[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

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

2014-03-08 Thread Paolo Caruccio
is to verify if all the files are in the static/css folder. Il giorno sabato 8 marzo 2014 20:31:03 UTC+1, Austin Taylor ha scritto: Thank you so much, Paolo!! This is wonderful! It certainly helped my understanding. However, whenever I try to use this code: Only web2py.css and calendar.css work

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

2014-03-08 Thread Paolo Caruccio
: 'bottom center' should work but please test it. Il giorno sabato 8 marzo 2014 21:46:05 UTC+1, Austin Taylor ha scritto: Thanks Paolo! I used firebug to check which css forms were pulling through and Calendar.css and web2py.css were being shown. However, when I started editing the proper

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-06 Thread Paolo Valleri
library belongs to the second file, the first one contains only a few line of code Paolo 2014-03-06 13:33 GMT+01:00 LightDot light...@gmail.com: Well, if people want to use ajax for the recaptcha, they can make a load component out of it. I think that the parameter really is redundant

[web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
Hi, Is it working without placing it in a component? have you tried to disable the facebook plugin? I'm just wondering if there is a correlation between the two. Paolo On Wednesday, March 5, 2014 10:42:13 AM UTC+1, Tim Richardson wrote: Invalid App Id: Must be a number or numeric string

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I run a couple of tests and I got the same issues, I am try to figure out why the js library (recaptcha_canary.js) is not loaded at all Paolo 2014-03-05 12:17 GMT+01:00 Tim Richardson t...@growthpath.com.au: On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote: Hi

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I haven't tested, just an idea, instead of adding a new parameter, what about checking current.request.ajax ? Paolo 2014-03-06 0:59 GMT+01:00 Tim Richardson t...@growthpath.com.au: I've made the PR, but my knowledge of jquery/javascript is paleolithic so Paolo is would be great if you can

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

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

2014-02-26 Thread Paolo Caruccio
: 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:56 UTC+1, Paolo Caruccio a écrit : Please try with: table#t1 input{width:auto;} Il giorno

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

2014-02-26 Thread Paolo Caruccio
as last css file. Il giorno mercoledì 26 febbraio 2014 20:39:08 UTC+1, Dominique ha scritto: Fantastic ! Now that works fine ! I changed the line 33 of web2py.css as you advised. Thank you very much Paolo ! Dominique Le mercredi 26 février 2014 20:09:36 UTC+1, Paolo Caruccio a écrit

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

[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

Re: [web2py] Re: Using @auth.requires_login() in modules

2014-02-03 Thread Paolo Valleri
I've just encountered the same problem, I am just wondering either if you have fixed it somewhere or if the mentioned lazy_auth has been implemented. Paolo On Thursday, September 26, 2013 6:27:19 AM UTC+2, Massimo Di Pierro wrote: You may want to look at the lazy_cache decorator in gluon

[web2py] Fwd: Re: Unable to edit static files in web-editor

2014-02-01 Thread Paolo Valleri
-- Forwarded message -- From: Paolo Valleri paolo.vall...@gmail.com Date: Feb 1, 2014 1:49 PM Subject: Re: Unable to edit static files in web-editor To: Yuriy Lopin yuriy.lo...@gmail.com Hi, i should have already fixed it; could you try to reproduce the issue using web2py trunk

[web2py] Re: ajax_error_500

2014-01-29 Thread Paolo Valleri
to 'w2p_ajax_confirm_message' Paolo On Wednesday, January 29, 2014 11:13:06 AM UTC+1, Annet wrote: While debugging an issue in Firefox 26.0 I noticed in the DOM tab that every Web2py page has an ajax_error_500 An error occured, please a href=/admin/default/edit/init/views/tierblocks/navigation

Re: [web2py] Re: Default Login method using email not HTML5 ready?

2014-01-29 Thread Paolo Valleri
You should customize the widget, try something like: db.auth_user.email.widget = lambda f,v: SQLFORM.widgets.string.widget(f, v, _placeholder='Email', _type='email') Paolo On Wednesday, January 29, 2014 9:10:52 PM UTC+1, Jim S wrote: Is there a plan to add it? Anything I can do to help

[web2py] Re: Unable to edit static files in web-editor

2014-01-28 Thread Paolo Valleri
which version of web2py are you using? have you seen any log in chrome console? Paolo On Monday, January 27, 2014 1:02:53 AM UTC+1, Yuriy Lopin wrote: https://lh4.googleusercontent.com/-lyoYCcRJgZk/UuWiH1VnZLI/AI8/LRo9EUzD-iw/s1600/54426627.jpg When I click some static js file even

[web2py] Re: How to do a insert..select with DAL?

2014-01-28 Thread Paolo Valleri
of course you can, I suggest to read here http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#insert On Tuesday, January 28, 2014 1:39:34 PM UTC+1, Dragan Matic wrote: Is there a way to do insert.. select with DAL? I would like to do something like this: insert

[web2py] Re: remove the /col 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.

[web2py] Re: good eBooks web2py for beginners?

2014-01-23 Thread Paolo Valleri
have you already checked http://web2py.com/book ? while a few how-to are published on web2pyslices.com regards Paolo On Thursday, January 23, 2014 1:15:56 PM UTC+1, Cristiano Araujo wrote: hello world, can u give me reference about some good books for web2py development? -- Resources

[web2py] Re: Bootstrap 3 custom checkbox widget div/div

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) for v

[web2py] Re: Install Web2py on Windows with Apache and Mod WSGI (using command line, *nix flavour)

2014-01-21 Thread Paolo Valleri
Well done, under scripts/setup_* there are several scripts for deployments on linux environment, it would be very nice to have something for windows too. Paolo On Tuesday, January 21, 2014 5:04:12 PM UTC+1, 黄祥 wrote: done, i'm sorry, forgot to tell that it tested work in windows 7 ultimate

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

2014-01-20 Thread Paolo Caruccio
. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. #!/usr/bin/env python # -*- coding: utf-8 -*- Developed by Paolo Caruccio ( paolo.carucci...@gmail.com ) Released

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

2014-01-20 Thread Paolo Caruccio
found the solution and I will update the package as soon as possible. Il giorno lunedì 20 gennaio 2014 18:56:38 UTC+1, Annet ha scritto: Hi Paolo, Thanks for your reply. I added the following lines of code to my bootstra3 function if isinstance(controls, basestring

[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

[web2py] detect a specific device

2014-01-14 Thread Paolo Valleri
can, let say, 'customize' the android tablet. What can I do in order to satisfy this requirement? Be aware that the simplest trick you have in mind should be fine because the app runs in an intranet; given that I don't foresee malicious attacks or any kind of hack. Regards Paolo -- Resources

[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'),

Re: [web2py] Migrating a hude database from Spring to web2py

2014-01-09 Thread Paolo Valleri
Mind that DAL should be instantiated with fake_migrate_all; run your app once, then you can set it to false. This operation will create several files (one for each defined table) in the app/databases/ directory moreover, do you need to alter the 5 tables you mentioned? Paolo On Thursday

Re: [web2py] styling widget divs

2014-01-07 Thread Paolo Caruccio
the change on github? :) Richard On Mon, Jan 6, 2014 at 4:22 PM, Paolo Caruccio paolo.ca...@gmail.comwrote: 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

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

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 paolo.ca...@gmail.comjavascript: wrote: The radiowidget function returns https

[web2py] Re: Virtual field for latitude and longitude from geometry field?

2014-01-03 Thread Paolo Valleri
()[db.location.point.st_x()] Paolo On Thursday, January 2, 2014 9:59:14 PM UTC+1, Christian Foster Howes wrote: i bet that by the time your lambda is running the point has been converted to a string already. can you see if that is true? i'm not sure how to invoke db functions in a lambda

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

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

[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

[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 Field('question_type', widget

[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

Re: [web2py] server slow down when face multiple requests

2013-12-22 Thread Paolo Valleri
what web2py version are you using? have you already had a look here: http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-and-scalability ? Paolo On Sunday, December 22, 2013 1:48:56 AM UTC+1, viniciusban wrote: If you're using sqlite or migrations are enabled

[web2py] Re: response.models_to_run in web2py 2.8.2

2013-12-20 Thread Paolo Valleri
I am not able to debug it a little more but as you can see here: https://github.com/web2py/web2py/commits/master/gluon/compileapp.py a few changes have been made on how models are handled, perhaps something broken backward compatibility ? Have you already tried with 2.7.4 ? Paolo On Friday

[web2py] Re: Detecting MYSQL running status

2013-12-19 Thread Paolo Valleri
I've the same problem, I don't think DAL has this kind of ability but I leave the word to others in such cases. Are you interested in showing the 404 page for all tickets or only for those the involve the db connection? Paolo On Thursday, December 19, 2013 7:35:24 AM UTC+1, Raj Chinna wrote

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread Paolo Valleri
logs should be placed in /var/log/apache2/ and /var/log/wsgi can you also check if the string after alias_match in /etc/apache2/sites-available/default matches the one mentioned here: https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-ubuntu.sh#L148 Paolo On Tuesday

[web2py] Re: Wappalyzer

2013-12-16 Thread Paolo Valleri
in the header or for the global js variable $.web2py (only for recent web2py app). I'll work on a PR later today. Paolo On Monday, December 16, 2013 2:42:19 PM UTC+1, webpypy wrote: Hi, I wish I could help, but I don't know what is it about. Good luck. Ashraf -- Resources: - http://web2py.com

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-13 Thread Paolo Valleri
Please, let us know what you have changed in the last days, if today nothing work and in the early days only default.py. @devs we should try to update response.static_version for each new major release at least. Paolo On Friday, December 13, 2013 10:27:04 AM UTC+1, Richard Brown wrote

[web2py] Re: help-block in Bootstrap forms

2013-12-13 Thread Paolo Caruccio
? On Friday, December 13, 2013 3:21:28 PM UTC+1, Paolo Caruccio wrote: Thank you LightDot. In the next few days I'll send to your private email the files for bootstrap3 and foundation5 so you will able to check my code and yours. My bootstrap 3 code supports multilevel (2, 3 and so on) menu

[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

[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

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:type,-and-contains ) Example from the book:

[web2py] Re: Proposal for big but simple improvement: [add view] in IDE view

2013-12-09 Thread Paolo Valleri
name could be get by a dialog. Let me think about that a bit more. For the [Add or +] in the file list, if I remember correctly Roberto (in CC) has started something a while ago. Paolo On Monday, December 9, 2013 4:57:25 PM UTC+1, Mika Sjöman wrote: Hi I just noticed watching Massimo's video

[web2py] new feature in trunk: TODO panel in admin editor

2013-12-08 Thread Paolo Valleri
seen users using FIXME (please let me know the ones you use most). It is still in a work in progress feature, given that please let me know not only any issue you will find but also all extensions you foresee. Paolo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] Re: After upgrade to 2.8.2: class 'sqlite3.IntegrityError' foreign key constraint failed

2013-12-04 Thread Paolo Valleri
Paolo On Wednesday, December 4, 2013 3:26:32 AM UTC+1, Scott Hunter wrote: I have a site which, after upgrading to 2.8.2 (and clearing out the sessions), when I try update a record via a smartgrid or via admin, I get the error in the title. I tried the same action on the copy of the site I had

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

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

2013-12-04 Thread Paolo Caruccio
Bootstrap has: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L228 so by the suggested rules we remove the link from the content. Il giorno mercoledì 4 dicembre 2013 22:07:10 UTC+1, Richard ha scritto: Yes Paolo, it works great... Many thanks for this... I am curious

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

<    1   2   3   4   5   6   7   >