[web2py] Re: The book updates and status

2012-12-23 Thread Tim Richardson
I hope this is not too late. I find it unclear what should be done when a new version of web2py arrives ... What important parts of an application are not upgraded when a new version of web2py arrives, and how to manually upgrade apps to new features of the scafold app. It would be good if this

[web2py] Re: Small form on all pages..

2012-12-23 Thread Niphlod
don't know how you handled, but for the sake of others running into this thread, the simpler way is to have a controller with a function dealing only with you little embedded form and then include it in the layout with LOAD() http://web2py.com/books/default/chapter/29/12#Components On

[web2py] Re: should re remove crud from the book?

2012-12-23 Thread Annet
Does this mean I should remove these lines of code from db.py: from gluon.tools import Crud crud = Crud(db) What are the equivalents for the settings and messages? crud.settings.label_separator='' crud.messages.record_updated=session.record_updated

Re: [web2py] Re: help please

2012-12-23 Thread Alan Etkin
El jueves, 20 de diciembre de 2012 10:44:42 UTC-3, Aurelijus Useckas escribió: yeah.. backup backup backup.. it's just that sometimes you forget to :( Would it be wise to add some backup module to web2py admin? It could default to 1 copy per day or smthing simillar. It would especially

[web2py] Re: radio widget styling.

2012-12-23 Thread Annet
Massimo, Thanks for your reply, problem solved. Kind regards, Annet --

Re: [web2py] Re: controller not returning variables

2012-12-23 Thread jonas
just to conclude this: I inserted the controller code in the view instead which solved the problem: h4i class=icon-user/i me (from sidebar.html):/h4 {{query=db.about.id0}} {{ab=db(query).select()}} {{dict(ab=ab)}} {{for pre in ab:}} {{for pr in pre.presentation.split():}} dl class=dl ddi

[web2py] Re: The book updates and status

2012-12-23 Thread Massimo Di Pierro
Should we just extend this recipe: http://web2py.com/books/default/chapter/29/14#Upgrading or should we also move it? In your opinion, does it belong somewhere else? On Sunday, 23 December 2012 03:47:43 UTC-6, Tim Richardson wrote: I hope this is not too late. I find it unclear what should be

[web2py] Re: should re remove crud from the book?

2012-12-23 Thread Massimo Di Pierro
On Sunday, 23 December 2012 03:51:59 UTC-6, Annet wrote: Does this mean I should remove these lines of code from db.py: from gluon.tools import Crud crud = Crud(db) If you remove these some plugins may break so we will not be doing it in welcome. Yet, yes, that is what I was suggesting.

[web2py] OT -- Advice on requiring JS to use site?

2012-12-23 Thread Joe Barnhart
I'm thrilled with some of the improvements in web2py in the AJAX area -- esp. LOAD(). But I am a little concerned about architecting my new website in a way that *requires* Javascript to access the basic navigation and display of my site's pages. A lot of computer security experts over the

[web2py] Re: OT -- Advice on requiring JS to use site?

2012-12-23 Thread Alan Etkin
El domingo, 23 de diciembre de 2012 14:04:21 UTC-3, Joe Barnhart escribió:I'm thrilled with some of the improvements in web2py in the AJAX area -- esp. LOAD(). But I am a little concerned about architecting my new website in a way that *requires* Javascript to access the basic navigation

[web2py] Re: Upload form, onvalidation and postbacks

2012-12-23 Thread Andy Salnikov
Hi Massimo, the problem happened with 2.1. I have just upgraded to 2.3.2 but I do not see any change. Below are the request/response headers for the upload form that results in validation failure. I tried to upload You can see that I tried to upload an image (file size is 1,127,797 bytes), for

Re: [web2py] should re remove crud from the book?

2012-12-23 Thread Alan Etkin
El sábado, 22 de diciembre de 2012 19:30:17 UTC-3, Alan Etkin escribió: I like crud very much (it's almost tallking english to the server) crud.read crud.update, ... it's like a web2py classic. For me, sounds like your preferred pizza delivery is not selling pepperoni anymore I guess I

[web2py] Re: OT -- Advice on requiring JS to use site?

2012-12-23 Thread Joe Barnhart
You make a valid point about Google and Facebook. I have not tried to use their online apps with Javascript disabled. I assume it's either non-functional or a horrible user experience. (Editing a file with no AJAX? I can't even imagine it.) Yet my site is going to be a paid site and I

[web2py] help in web2py 2.2.1

2012-12-23 Thread samuel bonilla
hi all i'm developing an application based on movuca ( https://github.com/rochacbruno/Movuca) but i get an error I do not understand type 'exceptions.TypeError' format requires a mapping Traceback (most recent call last): File /home/samuel/web2py/gluon/restricted.py, line 212, in restricted

Re: [web2py] Re: calendar.js incompatible with moment.js

2012-12-23 Thread Massimo Di Pierro
Looks like both do function something(){}; instead of var something=function(){} and therefore they both put and share functions in the global namespace. On Sunday, 23 December 2012 00:26:15 UTC-6, Yarin wrote: Not errors, just incorrect results- fails to parse dates, and returns

Re: [web2py] Re: calendar.js incompatible with moment.js

2012-12-23 Thread Yarin
10 4 - Submitted issue to moment.js: https://github.com/timrwood/moment/issues/556 On Sunday, December 23, 2012 4:05:38 PM UTC-5, Massimo Di Pierro wrote: Looks like both do function something(){}; instead of var something=function(){} and therefore they both put and share

[web2py] Re: help in web2py 2.2.1

2012-12-23 Thread Alan Etkin
El domingo, 23 de diciembre de 2012 18:01:21 UTC-3, samuel bonilla escribió:hi all i'm developing an application based on movuca ( https://github.com/rochacbruno/Movuca) but i get an error I do not understand type 'exceptions.TypeError' format requires a mapping Traceback (most recent call

[web2py] How to call a Table using a variable? db.VarName.update_or_insert(school_name = 'ABC High School')

2012-12-23 Thread Alberto Plata
I have a table, db.define_table('schools', Field('school_name', 'string')). I've been adding data to the table by, db.schools.update_or_insert(school_name = 'ABC High School'). My question is... Is there anyway I can call my 'schools' table with a variable?? As an example, when I try:

[web2py] Re: How to call a Table using a variable? db.VarName.update_or_insert(school_name = 'ABC High School')

2012-12-23 Thread simon
db[school_table_variable] On Sunday, 23 December 2012 22:41:52 UTC, Alberto Plata wrote: I have a table, db.define_table('schools', Field('school_name', 'string')). I've been adding data to the table by, db.schools.update_or_insert(school_name = 'ABC High School'). My question is...

[web2py] Re: How to call a Table using a variable? db.VarName.update_or_insert(school_name = 'ABC High School')

2012-12-23 Thread Alan Etkin
El domingo, 23 de diciembre de 2012 19:41:52 UTC-3, Alberto Plata escribió:I have a table, db.define_table('schools', Field('school_name', 'string')). I've been adding data to the table by, db.schools.update_or_insert( school_name = 'ABC High School'). My question is... Is there

Re: [web2py] should re remove crud from the book?

2012-12-23 Thread Massimo Di Pierro
LOL. I understand. For now this will stay. But if we want to keep it longer term we need a better reason. One posibility would be to rewrite crud keeping the current API (which you like) on top the new DALForm object from web3py (which is faster than form handling in web2py). Massimo On

Re: [web2py] Re: controller not returning variables

2012-12-23 Thread Anthony
h4i class=icon-user/i me (from sidebar.html):/h4 {{query=db.about.id0}} {{ab=db(query).select()}} {{dict(ab=ab)}} The dict line above isn't necessary. The controller function returns a dict so that the dict's keys will be added as global variables in the view environment, but since

[web2py] Re: The book updates and status

2012-12-23 Thread Tim Richardson
On Monday, 24 December 2012 01:48:29 UTC+11, Massimo Di Pierro wrote: Should we just extend this recipe: http://web2py.com/books/default/chapter/29/14#Upgrading or should we also move it? In your opinion, does it belong somewhere else? I think the location is good. Most beginner

[web2py] Re: The book updates and status

2012-12-23 Thread Anthony
Probably the most significant file to replace is web2py.js, and maybe web2py_ajax.html. There's also the generic views, appadmin.js, and appadmin.html. Anthony On Sunday, December 23, 2012 9:40:12 PM UTC-5, Tim Richardson wrote: On Monday, 24 December 2012 01:48:29 UTC+11, Massimo Di

[web2py] Re: OT -- Advice on requiring JS to use site?

2012-12-23 Thread Massimo Di Pierro
Why do all of your messages say Note: The author of this message requested that it not be archived. This message will be removed from Groups in Dec 30 Or more precisely. How did you set such preference? On Sunday, 23 December 2012 20:26:21 UTC-6, rh wrote: On Sun, 23 Dec 2012 09:04:21 -0800

Re: [web2py] Re: calendar.js incompatible with moment.js

2012-12-23 Thread Massimo Di Pierro
I believe the problem is now fixed. Please check it. yet the problem you reported is very serious and worse. In fact looks like calendar.js included in web2py redefines Date.prototype.setFullYear and this may results in wrong results when setting dates with or without using moment.js. This

[web2py] Re: Upload form, onvalidation and postbacks

2012-12-23 Thread Massimo Di Pierro
I think this is now fixed in trunk. Please check it. On Sunday, 23 December 2012 12:01:28 UTC-6, Andy Salnikov wrote: Hi Massimo, the problem happened with 2.1. I have just upgraded to 2.3.2 but I do not see any change. Below are the request/response headers for the upload form that

[web2py] Re: Using contrib.webclient to test JSONRPC interfaces

2012-12-23 Thread Massimo Di Pierro
Hello Daniel, getting back at this. Why use webclient for this instead of using gluon/contrib/simplejsonrpc.py? its seems to me it does not belong there. On Monday, 17 December 2012 14:01:18 UTC-6, Daniel Gonzalez wrote: I have slightly modified the WebClient to support jsonrpc. I am not