Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread 黄祥
i'm trying to upgrade from 2.5.2 to 2.6.1 in pythonanywhere got an error : admin disabled because unable to access password file i've tried to reload, delete and recreate webapps again but have the same result. is there any hints to handle this kind of error? thanks and best regards, stifan --

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Massimo Di Pierro
Which version gives you the ticket (2.6.1 or 2.6.2, windows, mac or source_ which os version? which python version?. Can you email me the ticket? massimo On Friday, 13 September 2013 22:24:11 UTC-5, samuel bonill wrote: > > upps http://127.0.0.1:8000/admin/default/site > > Internal errorTick

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread samuel bonill
upps http://127.0.0.1:8000/admin/default/site Internal errorTicket issued: admin/127.0.0.1.2013-09-13.22-09-59.b4c01b5f-4a30-45d5-a2b5-b46da488c4d4 I think that the best way fo

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread samuel bonill
good news Thanks to everybody and massimo for do a better web2py every day. El jueves, 12 de septiembre de 2013 17:27:37 UTC-5, Massimo Di Pierro escribió: > > Web2py 2.6.1 is finally OUT. It needs some more testing. > > READ BELOW BEFORE UPGRADING > > Attention all users: For pre 2.6 a

[web2py] Re: Raspberry Pi and web2py: No 19x.16x.xxx.xx option

2013-09-13 Thread Brian M
Eth0 is the PI's actual network address that can be accessed by other computers. lo is the localhost loopback which every computer has to basically talk to itself. (see https://en.wikipedia.org/wiki/Localhost). In other words if you were on your PC and pointed its browser at http://127.0.0.1:8

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Massimo Di Pierro
OK. 2.6.2 was just released and this problem should now be fixed. Thanks for reporting it. On Friday, 13 September 2013 12:09:41 UTC-5, Matthew Spence wrote: > > Hi all- > > I'm very excited about the upgrade. I'm deployed on PythonAnywhere, and > when I clicked on the button to "upgrade now to

[web2py] Re: How to make smartgrid redirect to edit after creating new record?

2013-09-13 Thread Alex Glaros
Adi, can you post the model for this? thanks, Alex Glaros On Friday, December 23, 2011 9:44:17 AM UTC-8, Adi wrote: > > this works: > > grid=SQLFORM.smartgrid(db.purchase_order, details=False, > links_in_grid=True, > maxtextlengths={'purchase_order.po_number':15

[web2py] Re: Can I make my own controller?

2013-09-13 Thread Zachary Burrows
You are awesome. Thank you! On Friday, September 13, 2013 3:26:54 PM UTC-7, Anthony wrote: > > > 1. >> Any time I log on to the website remotely and try to edit the site I get: >> "Admin >> is disabled because insecure channel" >> This is bothersome, as I want to be able to leave the Pi at wor

[web2py] Re: Creating Auth Groups

2013-09-13 Thread Dave S
On Sunday, August 11, 2013 4:38:00 AM UTC-7, Rob Paire wrote: > > Solved! Thank you for pointing me in the right direction - The problem was > that I had inadvertently created a duplicate connection object in my model > file. When I commented out the line db = DAL('sqlite://storage.db', > pool_

[web2py] Re: Can I make my own controller?

2013-09-13 Thread Anthony
> 1. > Any time I log on to the website remotely and try to edit the site I get: > "Admin > is disabled because insecure channel" > This is bothersome, as I want to be able to leave the Pi at work on a test > system and play with it from home. > admin requires connection via SSL or localhost

Re: [web2py] from jsonrpc import ServiceProxy - rise error

2013-09-13 Thread Michele Comitini
What jsonrpc lib are you using? 2013/9/13 Dmitry Ermolaev > in web2py 2.6.1 for Windows this code: > > from jsonrpc import ServiceProxy > rise error: > > Traceback (most recent call last): > > File "C:\web2py\gluon\restricted.py", line 217, in restricted > >exec ccode in environment > > F

[web2py] Re: simple button in grid question

2013-09-13 Thread Dave S
On Friday, September 13, 2013 1:57:28 PM UTC-7, Alex Glaros wrote: > > I tried this but got "lambda requires 2 args, 1 given" error, plus need to > be able to pass Idea.id parm to the button. How to do that? > > grid = SQLFORM.grid(query,links = [dict(header='Virtual > Field',body=lambda id

[web2py] Can I make my own controller?

2013-09-13 Thread Zachary Burrows
Hello everyone! I've set up a Raspberry Pi with web2py and am playing with it. I have two questions. 1. I have made a website on the 0.0.0.0 server, and have my own module in "modules" that I am importing into a controller function. However, I am unable to make and use my own controller functio

[web2py] anytime.js widget on html forms and date,time issue

2013-09-13 Thread wiel
1. does the anytime.js widget work on hand written html forms that are processed by SQLFORM? http://dev.s-cubism.com/plugin_anytime_widget 2. the inputs of type "date" and "time" are blank on firefox and internet explorer but not chrome. is that a known issue? Im on 2.5.1-stable -- Resources:

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-13 Thread Massimo Di Pierro
This is now done in 2.6.1 On Friday, 13 September 2013 14:05:39 UTC-5, Michele Comitini wrote: > > @niphlod I'd prefer having everything under the gluon namespace > > import gluon. > > > 2013/9/13 nils > > >> Hi, >> >> I had a problem along the same lines, it turned out that uwsgi was >> compile

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Massimo Di Pierro
Can you explain better? The file should be created if not there. On Friday, 13 September 2013 06:49:10 UTC-5, Javier Pepe wrote: > > I'm try to use new version, but missing settings.cfg file. > > In that directory has to put it and what format must have? > > Thansk > > > On Fri, Sep 13, 2013 at 8:

[web2py] Re: simple button in grid question

2013-09-13 Thread Alex Glaros
I tried this but got "lambda requires 2 args, 1 given" error, plus need to be able to pass Idea.id parm to the button. How to do that? grid = SQLFORM.grid(query,links = [dict(header='Virtual Field',body=lambda id, r: A('Add a comment!', _href=URL('comment_on_a_suggestion', vars=dict(filter

[web2py] Re: simple button in grid question

2013-09-13 Thread villas
Hope this helps... >From the book: links is used to display new columns which can be links to other pages. The links argument must be a list of dict(header='name',body=lambda row: A(...))where header is the header of the new column and body is a function that takes a row and returns a value.

[web2py] simple button in grid question

2013-09-13 Thread Alex Glaros
How do I add a button "Add a comment!" in every row of a grid? It's a kind of virtual column. The below works, it takes user exactly to the correct row in the next table, but I use up one of the fields (Idea.id). How do I just create text/virtual column that doesn't sacrifice existing field?

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-13 Thread Michele Comitini
@niphlod I'd prefer having everything under the gluon namespace import gluon. 2013/9/13 nils > Hi, > > I had a problem along the same lines, it turned out that uwsgi was compile > with python 3.3 support. > > This was Ubuntu 13.04 and I installed it via apt-get , check the entire > uwsgi logs

[web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Matthew Spence
Hi all- I'm very excited about the upgrade. I'm deployed on PythonAnywhere, and when I clicked on the button to "upgrade now to Version 2.6.1", it looks like it downloads, but then suddenly I get "Internal error. Ticket issued admin/" and now my admin interface does not work. (The site stil

[web2py] Re: upload and a process file using SQLFORM.grid

2013-09-13 Thread P T
Found the answer by searching the forum for "sqlform.grid oncreate" and specifically the answer by Niphlod in this post https://groups.google.com/forum/#!searchin/web2py/sqlform.grid$20oncreate/web2py/ShebcblC9pM/rrdI9F6ZgV8J On Thursday, September 12, 2013 12:05:45 AM UTC-5, P T wrote: > > H

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-13 Thread nils
Hi, I had a problem along the same lines, it turned out that uwsgi was compile with python 3.3 support. This was Ubuntu 13.04 and I installed it via apt-get , check the entire uwsgi logs for the python version. regards, Nils On Fri, Sep 13, 2013 at 10:48 AM, Johann Spies wrote: > On 12 Septe

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Richard Vézina
Ok, I thought the change you were discussing were kind of backward issue with the way we write js in web2py and pass it to the view. Yes, I always update the files you talk about, since I get bitte in the pass because of not updating them :) Thanks for clarify. Richard On Fri, Sep 13, 2013 at 1

Re: [web2py] simple controller question

2013-09-13 Thread Richard Vézina
As I wrote I didn't take time to read all you code... It just mean that if you want to use SQLFORM.factory() in "update" mode like crud.update you can't just pass the id of the edited record. The way it works with factory is tu use default=value for each field to set the value of the record in the

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Niphlod
yep. the "complaints" we expect are from people forgetting to update web2py.js in their application. Although this was never stated explicitely, there are parts of the application that belongs really to the framework itself (appadmin, web2py.js, etc. what is clearly stated in the changelog). Un

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Richard Vézina
Thanks for the answer... Richard On Fri, Sep 13, 2013 at 11:04 AM, Anthony wrote: > I don't think you'll have to make any changes. I believe the reference to > inline Javascript was related to framework widgets that were using inline > JS, which has now been moved to web2py.js. > > Anthony > >

Re: [web2py] simple controller question

2013-09-13 Thread Alex Glaros
Thanks Richard, works correctly now. What does this mean? "About you predefined choice from a all ready existing record (update mode with .factory()), I you have to set the default value for the form base on the value extract form the DB for the existing record" Do you mean I should copy this l

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Anthony
I don't think you'll have to make any changes. I believe the reference to inline Javascript was related to framework widgets that were using inline JS, which has now been moved to web2py.js. Anthony On Friday, September 13, 2013 10:57:52 AM UTC-4, Richard wrote: > > Many thanks to all contribut

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Richard Vézina
Many thanks to all contributors! Just one question... I read on here about something of "no more inline javascript" and that will bring complaints from users... Does I have to refactor anything about the way I pass javascript between controller and view related to this discussed change by Niphold?

Re: [web2py] simple controller question

2013-09-13 Thread Richard Vézina
Hi Alex, I didn't read carefully your code but just a couple advice... With SQLFORM.factory you need to insert you data yourself like this : form = SQLFORM.factory(db.your_table_name, ...) if form.process().accept: id = db.lotns_sample.insert(**db.your_table_name._filter_fields(form.vars))

[web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-13 Thread samuel bonill
+1 El jueves, 12 de septiembre de 2013 02:00:39 UTC-5, rochacbruno escribió: > > Hi, > > I found this talk interesting > http://www.youtube.com/watch?v=d1a4Jbjc-vU&feature=share > > Jessica McKeller talks about how "windows OS" is important to the future > of Python, and how it is complicated to

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
Okay good to know. Thanks! Am Freitag, 13. September 2013 14:34:33 UTC+2 schrieb Anthony: > > Also, note that one advantage of having a "default" controller (which > doesn't necessarily have to be named default.py) is that you can use the > URL rewrite system to exclude that controller name from

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Anthony
Also, note that one advantage of having a "default" controller (which doesn't necessarily have to be named default.py) is that you can use the URL rewrite system to exclude that controller name from URLs, making your URLs a little shorter/cleaner. You can also exclude a default function within

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
Thanks, that answers my question. Am Freitag, 13. September 2013 14:14:17 UTC+2 schrieb Niphlod: > > a controller is just a file. That file holds every function that > "generate" a page. > That being said, it's just how you lay out your url-scheme that usually > decides what controller to use: >

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Niphlod
a controller is just a file. That file holds every function that "generate" a page. That being said, it's just how you lay out your url-scheme that usually decides what controller to use: /appname/controllername/functioname in the end is the url where to retrieve the infos. On Friday, Septembe

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Javier Pepe
Now work The update from admin interface not end correctly. Unzip file over actual folder, restart and work!!! On Fri, Sep 13, 2013 at 8:49 AM, Javier Pepe wrote: > I'm try to use new version, but missing settings.cfg file. > > In that directory has to put it and what format must have? > >

[web2py] Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
Hey guys, this is maybe a dumb question, but I'm asking myself, when I should use other controllers the "default.py". In the tutorials and the web2py-book the default-controller is used most of the time and every action is placed inside it. I assume to split my code into logical parts, so if I

[web2py] from jsonrpc import ServiceProxy - rise error

2013-09-13 Thread Dmitry Ermolaev
in web2py 2.6.1 for Windows this code: from jsonrpc import ServiceProxy rise error: Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 217, in restricted exec ccode in environment File "C:/web2py/applications/ipay/controllers/default.py"

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Javier Pepe
I'm try to use new version, but missing settings.cfg file. In that directory has to put it and what format must have? Thansk On Fri, Sep 13, 2013 at 8:40 AM, Javier Pepe wrote: > +1 > > > On Fri, Sep 13, 2013 at 5:56 AM, Tim Richardson wrote: > >> I've been using it for about a month on one W

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Javier Pepe
+1 On Fri, Sep 13, 2013 at 5:56 AM, Tim Richardson wrote: > I've been using it for about a month on one Windows production site with > ms-sqlserver, and it's a great release. So many improvements and even more > fun to use. Thanks. > > -- > Resources: > - http://web2py.com > - http://web2py.com/

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-09-13 Thread Johann Spies
On 12 September 2013 03:52, Massimo Di Pierro wrote: In both cases print the sys.path. > > On 'spyker' where the problem is: $ python web2py.py -M -S alterit web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2013 Version 2.5.1-stable+timestamp.2013.06.06.15.39.19 Database drivers

Re: [web2py] Re: web2py 2.6.1 is OUT - IMPORTANT READ

2013-09-13 Thread Tim Richardson
I've been using it for about a month on one Windows production site with ms-sqlserver, and it's a great release. So many improvements and even more fun to use. Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht