[web2py] web2py 2.9.8 fixes the appadmin redirection problem!

2014-09-06 Thread Massimo Di Pierro
The problem was introduced in 2.9.7. So skip 2.9.7. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed t

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Massimo Di Pierro
Just to clarify your answer with form = SQLFORM(...) then {{=form}} serializes in HTML but the corresponding objects exist even if you don't. with form = JForm then {{=form}} only makes a which JS (provided) converts to a form. There is no server-side DOM and this make it a lot faster. On

[web2py] Re: Is this still true about keyed tables?

2014-09-06 Thread 'DenesL' via web2py-users
Maybe that should read: *Currently keyed tables are only supported for DB2, MS-SQL, Ingres and Informix, but others engines CAN be added*. The biggest hurdle is coming up with the correct syntax to create foreign key (or table) references in a particular database engine. Once you have that then

[web2py] Re: apply a function to a column in db query

2014-09-06 Thread Anthony
For transformation for display in the grid, SQLTABLE, and read-only form fields, you can use the "represent" attribute of the field: db.define_table('mytable', Field('mytime', represent=lambda v, r: time.strftime('%Y-%m-%d %H:%M:%S' , time.localtime(v If you want to make sure the transfo

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Anthony
On Saturday, September 6, 2014 5:30:44 PM UTC-4, Ide wrote: > > I like the idea of a slimmed down equivalent of SQLFORM. However, I think > it should be written to permit client side rendering via js scripts, or > server side rendering in views; as such the output as json or python > object/arra

[web2py] Re: Issues with AppAdmin

2014-09-06 Thread Massimo Di Pierro
Please test trunk, there is a possible fix although I did not test it. On Saturday, 6 September 2014 13:36:13 UTC-5, Niphlod wrote: > > see https://groups.google.com/d/msg/web2py/9kXd30hW3j0/cKL2vF3B2qcJ > > On Saturday, September 6, 2014 7:48:07 PM UTC+2, Encompass solutions wrote: >> >> I tried

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Luciano Laporta Podazza
Same issue :(, as mentioned before, tried testing default apps and my app and it redirects to admin page. On Sat, Sep 6, 2014 at 8:14 PM, Luciano Laporta Podazza < lucianopoda...@gmail.com> wrote: > Right now! :), I'll get back to you with results. > > Cheers. > > > On Sat, Sep 6, 2014 at 8:11 P

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Luciano Laporta Podazza
Right now! :), I'll get back to you with results. Cheers. On Sat, Sep 6, 2014 at 8:11 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Possible fix in trunk. Can you help test it? > > > On Saturday, 6 September 2014 06:56:54 UTC-5, Niphlod wrote: >> >> ok. it hasn't anything to do w

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Massimo Di Pierro
Possible fix in trunk. Can you help test it? On Saturday, 6 September 2014 06:56:54 UTC-5, Niphlod wrote: > > ok. it hasn't anything to do with the "more security" change. It has to do > with the new session storage behaviour. Filing an issue right now, > shouldn't be hard to fix > > On Saturday

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Ide
I admit I haven't looked at this files, but these are my thoughts on the general concept, so apologies if some of these comments don't directly reflect your exact proposal. I like the idea of a slimmed down form generation process on the server, and there is a trend to greater rendering on the

[web2py] apply a function to a column in db query

2014-09-06 Thread Anna Kostikova
Dear list, I am making a query to a database where I have a column which stores time in unix epoch format (1347517370). Then I use this query in sqlgrid.form to present results to the user. However, I would like to convert the epoch format into normal time representation as below: time.strftime('

[web2py] dynamically add rows to html table

2014-09-06 Thread trr
I have a html table generated in controller. This table gets rendered. Now if the user wants more number of rows added to the table, I give a AddRows button. On the click of AddRows I would like to add rows to the existing table in the controller with empty cells and render it with the additiona

[web2py] routes.py parameter-based and pattern-based glitch

2014-09-06 Thread daniel . jarolim
I'm getting a URL rewrite glitch. The scenario: web2py running through IIS using wsgi and published as a virtual IIS application called TEST. Therefore the resulting URLs will always need to look like http://localhost/TEST/welcome/... or http://localhost/TEST/admin/... The following routes.py

[web2py] Deployment of Web2py Framework on Linux redhat version 6 then configure with apache

2014-09-06 Thread Kamal Mohemed
Hi to everyone, I downloaded web2py frame work and run on the web2py default server it is working fine, but we want that should be run with apache server with some different url how to do that? Thanks Kamal Research scientist NRSC, ISRO -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Ide
I like the idea of a slimmed down equivalent of SQLFORM. However, I think it should be written to permit client side rendering via js scripts, or server side rendering in views; as such the output as json or python object/array would be ideal. Personally I prefer python to javascript so would

[web2py] Why does dal.py:parse_value() convert unicode to utf-8?

2014-09-06 Thread P Walsh
In my application I would prefer to use Python's *unicode* type for all string data. In my database I am storing strings as *utf-8* encoded. The problem is that when I read one of these fields using the DAL, the new object returned to my application is of type Python *string* rather than type

[web2py] Re: sqlform.grid default search value

2014-09-06 Thread Douglas Campbell
I had tried that, but I can not get a route to work that would automatically redirect me to ?keywords=something I tried adding it to routes.py but it just ignores everything after the '?'. Any tips for getting a route to work that redirects me to the keyword URL? On Friday, September 5, 2014

[web2py] Re: Check to delete glitch in 2.9.6 and 2.9.7

2014-09-06 Thread Ide
Great, fixed on my server now. Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google

[web2py] Anyone else having problem with delete icon in 2.9.7?

2014-09-06 Thread Ide
I am finding that the delete icon in the admin interface opens the file (image) or downloads the file (text file) rather than giving the option to delete. The url seems to be correct, I see the delete function within the URL. Does anyone else see this problem? Thanks. -- Resources: - http://

[web2py] Re: web2py setup scripts for windows

2014-09-06 Thread Tim Richardson
Simonne, I wish to learn about IIS & fastcgi since I use web2py on windows servers a bit. If you put some notes and the steps, I will write it up to a draft guide. On Saturday, 6 September 2014 00:57:46 UTC+10, Niphlod wrote: > > we should NOT use this script because: > - uses apache > - uses a

[web2py] Re: "validate_and_insert" my new best friend

2014-09-06 Thread Tim Richardson
Thanks, I think this is a good tip. On Saturday, 6 September 2014 18:16:59 UTC+10, Joe Barnhart wrote: > > File this under "stupid but useful web2py tricks" > > I have a database that I need to populate from an ASCII text file. I've > been tearing my hair out parsing the file and doing all t

[web2py] Re: Issues with AppAdmin

2014-09-06 Thread Niphlod
see https://groups.google.com/d/msg/web2py/9kXd30hW3j0/cKL2vF3B2qcJ On Saturday, September 6, 2014 7:48:07 PM UTC+2, Encompass solutions wrote: > > I tried graphing my model for a new app I was working on and it just > jumped back to the admin screen. > I also trying doing db admin and it did the

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Anthony
> > I do not use SQLFORM because fixing the html it generates often takes more > time than to write my own html. You can write your own completely custom HTML and still use SQLFORM on the server side to handle validation, database I/O, and CSRF protection. I would not give up SQLFORM just bec

[web2py] Re: Reasoning behind "dict objects", such as request.vars, session, etc

2014-09-06 Thread Anthony
> > It is much more clean to write *session.var* than *session['var']* when I > can, as well as *if session.var* instead of *if hasattr(session, 'var')*, > and I would like to use this style of coding generally in python, if it can > remain pythonic. > Note, session, request, and response are

Re: [web2py] Reasoning behind "dict objects", such as request.vars, session, etc

2014-09-06 Thread Marin Pranjić
Hi! The whole "pythonic or not pythonic" is silly IMO. Python gives us freedom. Yes, you can do stupid things, but this feature is cool and useful, so why not? And "it's not pythonic" is not an argument at all. They should point out bad things that could happen. Maybe there are some bad edge cases

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Niphlod
ok. it hasn't anything to do with the "more security" change. It has to do with the new session storage behaviour. Filing an issue right now, shouldn't be hard to fix On Saturday, September 6, 2014 1:23:00 AM UTC+2, Dragan Matic wrote: > > +1 Here. It does the same thing to me, 2.9.7 appadmin re

[web2py] "validate_and_insert" my new best friend

2014-09-06 Thread Joe Barnhart
File this under "stupid but useful web2py tricks" I have a database that I need to populate from an ASCII text file. I've been tearing my hair out parsing the file and doing all the formatting by hand for every field, and then inserting the data into the table. What a joy to find "validat

Re: [web2py] Re: a proposal for form improvement

2014-09-06 Thread Marin Pranjić
On Sat, Sep 6, 2014 at 9:52 AM, Robin Manoli wrote: > Great idea! > I think definitely web2py should be optimized towards ajax and javascript. > > I do not use SQLFORM because fixing the html it generates often takes more > time than to write my own html. I think there are some improvements that

[web2py] Re: a proposal for form improvement

2014-09-06 Thread Robin Manoli
Great idea! I think definitely web2py should be optimized towards ajax and javascript. I do not use SQLFORM because fixing the html it generates often takes more time than to write my own html. I think there are some improvements that can be done to forms anyway, which can be implemented in a ne

[web2py] Reasoning behind "dict objects", such as request.vars, session, etc

2014-09-06 Thread Robin Manoli
Hey, It is much more clean to write *session.var* than *session['var']* when I can, as well as *if session.var* instead of *if hasattr(session, 'var')*, and I would like to use this style of coding generally in python, if it can remain pythonic. I've been looking into using classes to store va