[web2py] why request.vars are added an additional key “records” with null value when I used the sqlform.grid?

2016-09-11 Thread Yibing Liu
My web2py version is 2.14.6. I define a form in myview.html ` ` In my default controler function 'index' I want to deal with the request.vars passed from html.It works fine. Then I add a form=SQLFORM.grid(query) to my function, I find that the request

[web2py] Re: why request.vars are added an additional key “records” with null value when I used the sqlform.grid?

2016-09-12 Thread Yibing Liu
such a way that the grid is the sole > "manager" of the request/response cycle, so fiddling in the same page with > your own pieces of code may result in issues. > > On Monday, September 12, 2016 at 8:37:13 AM UTC+2, Yibing Liu wrote: >> >> >> My

[web2py] unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
Hello Everyone, I am installing an app from an .w2p file. However I get an error message "unable to install application". And I add the following code in gluon/admin.py app_install: except Exception: import traceback print traceback.format_exc() if did_mkdir: r

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
在 2016年3月4日星期五 UTC+8上午2:37:30,Yibing Liu写道: > > Hello Everyone, I am installing an app from an .w2p file. However I get an > error message "unable to install application". And I add the following code > in gluon/admin.py app_install: > except Exception: &

[web2py] Re: unable to install application for " The file name(s) would be too long for the destination folder."

2016-03-03 Thread Yibing Liu
Thank you very much. 在 2016年3月4日星期五 UTC+8上午3:27:31,Dave S写道: > > > > On Thursday, March 3, 2016 at 10:37:30 AM UTC-8, Yibing Liu wrote: >> >> Hello Everyone, I am installing an app from an .w2p file. However I get >> an error message "unable to install ap

[web2py] Edit layout of SQLFORM.smartgrid not display the value of filed whose type is "list:string"

2016-03-06 Thread Yibing Liu
Hello everyone, I am using SQLFORM.smartgrid to edit the records in my database. But when I press the "edit" button to edit a record in my database the fileds value whose type is "list:string" not display. But other type fields show the values fine. The following code is the field definition: F

[web2py] insert multiple records to a new db.table from an existing table

2016-03-10 Thread Yibing Liu
Hello everyone, I have an existing table named db.news. I want to insert multiple rows which are selected from the existing db.news to another table. My code is like following: news=db(db.news.id>=0).select(orderby=~db.news.release_time)[0:15] db.news_temp.truncate() db.news_temp.insert(news) Thi

[web2py] is there an easy way to add member to the db.auth_membership?

2016-03-19 Thread Yibing Liu
I want to add member to the db.auth__membership. I have too many users in db.auth_user, so it's very hard to add a specified user to the membership. Could anyone help me? The following is the screenshot

[web2py] Re: how to resend verification email?

2016-03-19 Thread Yibing Liu
. Using a commercial service is > better > > On Wednesday, 16 March 2016 07:41:21 UTC-5, Yibing Liu wrote: >> >> Hello everyone, I developed a website with web2py. I have >> set auth.settings.registration_requires_verification = True to verify the >> register's ema

[web2py] how to resend verification email?

2016-03-19 Thread Yibing Liu
Hello everyone, I developed a website with web2py. I have set auth.settings.registration_requires_verification = True to verify the register's email. However some of the users tell me that they can't receive the verification email. They try to re-register with the same email to get the verifica

[web2py] error of mongodb when dealing with list:string

2016-03-31 Thread Yibing Liu
Hello everyone. The databese of my web app is mongodb. I have defined a table as the following db.define_table('stu_jb', Field("zy",label="major",type="list:string",requires=IS_IN_SET(major_lists,multiple=True)), ) But when I add a record to the table I get the following error '

[web2py] web2py/pydal.Download uploaded file error when the original filename of uploaded file is chinese cha

2017-03-01 Thread Yibing Liu
I am using web2py. I cloned the latest version of pydal. I define a 'upload' field in my table. Then I upload a image whose filename is chinese character. Everything seems ok so far. However when I try to access the uploaded file with the download function, I get a server error. I have found tw

[web2py] Re: web2py/pydal.Download uploaded file error when the original filename of uploaded file is chinese cha

2017-03-05 Thread Yibing Liu
https://github.com/web2py/web2py/pull/1575 solved this problem. 在 2017年3月2日星期四 UTC+8下午7:01:10,Marlysson Silva写道: > > Appers some error ticket with a message? Or just just "server error" .. > > Em quarta-feira, 1 de março de 2017 23:52:54 UTC-3, Yibing Liu escreveu: >

[web2py] eclipse+pydev breakpoint not work with the latest cloned web2py

2017-03-07 Thread Yibing Liu
My computer is win7 x64. I am using eclipse(4.6.2) ,pydev(5.5.0), python(2.7.13) and the web2py latest cloned from the github. Compared with the 2.14.6 stable version web2py, the latest cloned web2py has many additonal files which I guess may be used for compiling and debugging. However when I

[web2py] web2py redirect to a incorrect page

2015-10-30 Thread Yibing Liu
I am learning web2py. I found a redirect error between 2 very simple actions. This application which I simple modify from the web2py manual is just used to help me to understand the controlflow,request.args and request.vars of web2py. Here is the code in my default controller. def index():