[web2py] Fail to add entry to list:reference field

2013-04-07 Thread Spring
Hello there, I'm using a list:reference type field (f_keypersons in the code below). Having two issues here: 1. When adding/editing a record the dropdown appears on the corresponding field with correct options, but NO +/- sign as usual list fields. 2. After select one option value and submit

[web2py] Re: UnicodeEncodeError on GAE

2013-04-07 Thread Spring
Encountered the same issue, removing 'str()' and it worked. Thanks 在 2012年2月16日星期四UTC+8下午10时59分28秒,sherdim写道: I Think it is a bug as for 1.99.4 When a form tries to keep values w/ non ascii characters if form.accepts(request.vars,session, formname=sP, keepvalues=True): File

[web2py] Issues running auth.wiki() based app in GAE launcher

2013-03-28 Thread Spring
. This is could be the same reason of database records since those pages are stored in wiki page tables. Can someone advise on the solutions? Thanks. Spring -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group

[web2py] Re: Issues running auth.wiki() based app in GAE launcher

2013-03-28 Thread Spring
Hi Niphlod, Thank you for the replay. It explains clearly. However, I understand how to export database from appadmin, but for importing do I have to write the function or there is similar function already provided in GAE Launcher? Spring 在 2013年3月28日星期四UTC+8下午7时46分41秒,Niphlod写道: GAE

[web2py] Re: Issues running auth.wiki() based app in GAE launcher

2013-03-28 Thread Spring
Right I don't why I got the idea Appadmin doesn't work in GAE, maybe during jump reading of some posting... Problem solved. Thanks. 在 2013年3月28日星期四UTC+8下午8时25分12秒,Niphlod写道: you can import and export data from appadmin. On Thursday, March 28, 2013 1:17:04 PM UTC+1, Spring wrote: Hi

[web2py] Re: After modifying routes.py, GAE still routing to Welcome rather than my app

2013-03-28 Thread Spring
Ok, today I finally solved this problem. the default_application in routes.py is case-sensitive. I named my application folder in a upper case and caused missing of default app then web2py goes for welcome. 在 2011年11月6日星期日UTC+8下午9时28分27秒,Spring写道: Hi there, I'm facing a problem with GAE

[web2py] Is database on GAE overwritten when re-deploy app via GAE launcher?

2013-03-28 Thread Spring
Hello there, Logically I think the GAE database should not be overwritten when re-deploy. Anyone please confirm this? Thanks. Spring -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving

[web2py] Re: Is database on GAE overwritten when re-deploy app via GAE launcher?

2013-03-28 Thread Spring
Thanks for the kind reply, Massimo. 在 2013年3月29日星期五UTC+8上午3时12分13秒,Massimo Di Pierro写道: it is not overwritten. On Thursday, 28 March 2013 11:15:05 UTC-5, Spring wrote: Hello there, Logically I think the GAE database should not be overwritten when re-deploy. Anyone please confirm

Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-28 Thread Spring
pass it. Somehow I assume it's because the logging is set to login as app administrator by some unknown means. I hope you or someone may come up with a solution. Regards, Spring 在 2012年10月18日星期四UTC+8下午11时45分15秒,Alan Etkin写道: El jueves, 18 de octubre de 2012 12:29:17 UTC-3, Bill Thayer

[web2py] How to display 'text' field contents in several paragraphs rather than in single line

2013-03-27 Thread Spring
Hello there, I have defined a 'text' field in the table. The content consists of multiple paragraphs, when displayed in the view the content squeezes into a single line. It seems all 'enter' in original text was replaced by a space. How can I display the text as paragraphs as it is input?

[web2py] Re: How to display 'text' field contents in several paragraphs rather than in single line

2013-03-27 Thread Spring
in XML() is necessary to prevent the web2py template engine from escaping the br / elements, and sanitize=True keeps XML() safe from insecure code that might be injected into the submitted text. Anthony On Wednesday, March 27, 2013 3:33:50 AM UTC-4, Spring wrote: Hello there, I have defined

[web2py] non-wiki-editor sees [wiki] dropdown menu

2013-03-26 Thread Spring
and wiki-editor. Now when i loggin with role of CommonUser I can still see the *[wiki]* but when clicking any function it gives 401 UNAUTHORIZED error (which should be so). How to hide *[wiki]* from non-wiki-editor users in my case? Thanks for any reply. Spring -- --- You received this message

[web2py] [Newbie]How to query and display table records defined in db.py in pages of auth.wiki()

2013-03-26 Thread Spring
that handles a lot of needs, so I believe there is a simple way out. It would be wonderful if it can be achieved with Markmin just embedding youtube video. Any reply appreciated. Spring -- --- You received this message because you are subscribed to the Google Groups web2py-users group

[web2py] Re: [Newbie]How to query and display table records defined in db.py in pages of auth.wiki()

2013-03-26 Thread Spring
Thanks for explaining. 在 2013年3月26日星期二UTC+8下午10时33分05秒,Spring写道: Hi there, I've going through the web2py group trying various keywords but didn't find a clear answer: in the pages of auth.wiki, how can I query and display tables defined in db.py? Or, more importantly is this possible

[web2py] Re: Error when listing newly created database tables from appadmin

2013-03-25 Thread Spring
Agree with it. According to my practice empty can table can be referenced and the dropdown list is created by without any item. By defining the referenced tables first does solve my problem. 在 2013年3月25日星期一UTC+8下午10时48分02秒,Cliff Kachinske写道: As I understand it, the table does not have to

[web2py] Re: Error when listing newly created database tables from appadmin

2013-03-24 Thread Spring
, the first two fields f_account_id and f_lead_id refer to another two tables respectively. When use new record in Appadmin, f_account_id is a fill-in while f_lead_id becomes a dropdown (which is good). I cannot see where the difference comes from. Thanks in advance. Spring I think

[web2py] Re: Error when listing newly created database tables from appadmin

2013-03-24 Thread Spring
I think I kinda figured out the problem. The order of defining tables seems matter. Tables to be referenced need to be defined before the referencing tables. Guess it's a rookie mistake. Spring 在 2013年3月25日星期一UTC+8上午9时13分56秒,Spring写道: Hello Alan, Thanks for the reply. I noticed the common

[web2py] Error when listing newly created database tables from appadmin

2013-03-23 Thread Spring
Hi there, I've created 7 tables from my app and 2 of them cause error when to be listed from Appadmin (/appadmin/select/db?query=db.t_leads.id0). Don't see anything particular in the table definition that may cause the problem. Any help would be apprecicated. Traceback Traceback (most

[web2py] Subfolders under /static/img

2011-11-07 Thread Spring
subfolder of static/img are not available. Obviously, subfolders under static/img were not deployed. Is there any config to include the those subfolders, or this kind of subfolder under /static/img is not supported, ie. all img have to be under /static/img. Thanks. -Spring

[web2py] After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Spring
and routes_out remain unchanged. = Can anybody help on this. Thanks in advance. Spring

[web2py] Re: After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Spring
I can find out in both routes.py is udner __routes_doctest(). Have no idea how GEA redirects to welcome/default/ index. Spring On 11月6日, 下午11时26分, Jonathan Lundell jlund...@pobox.com wrote: On Nov 6, 2011, at 5:28 AM, Spring wrote: I'm facing a problem with GAE deployment. GAE still

[web2py] Re: Google App Engine Launcher and Deployment

2011-11-05 Thread Spring
Exactly the same issue here. Do we have any news on this? Spring On Oct 15, 3:05 pm, Simon Ashley gregs...@gmail.com wrote: Just a first time play with this.   (Environment: Python 25, current Web2Py nightly source {copied to the Python25 root} and fresh copy of the Google App Engine Launcher

[web2py] Re: Google App Engine Launcher and Deployment

2011-11-05 Thread Spring
Found it in the Nightly Built source code, but not the stable one. Problem solved. Thanks. On Nov 6, 1:44 am, Jonathan Lundell jlund...@pobox.com wrote: On Nov 5, 2011, at 10:33 AM, Spring wrote: Exactly the same issue here. Do we have any news on this? I believe this is fixed in the trunk

[web2py] Re: Best practice of organizing/present static pages

2011-10-29 Thread Spring
Hi Anthony, you understand my needs perfectly. I will try your solution. Thanks Spring On Oct 29, 1:26 pm, Anthony abasta...@gmail.com wrote: On Saturday, October 29, 2011 1:17:43 AM UTC-4, pbreit wrote: Not the best urls but could you put them in static? I assume he meant the main page