[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 "C

[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

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

2013-03-28 Thread Spring
Xxw4bA>." only signing with the app creator's google account can 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秒,A

[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 overwritt

[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

[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写道: > >

[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

[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写道: > &g

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

2013-03-28 Thread Spring
x27;[wiki]' tag. 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 u

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

2013-03-27 Thread Spring
, ''), sanitize=True)}} > > Wrapping the string in XML() is necessary to prevent the web2py template > engine from escaping the elements, and sanitize=True keeps XML() > safe from insecure code that might be injected into the submitted text. > > Anthony > &g

[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? Tha

[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?

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

2013-03-26 Thread Spring
wiss knife 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 "web2

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

2013-03-26 Thread Spring
t;*[wiki]*" menu will only be exposed to "user_1" 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 &

[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 exi

[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 rep

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

2013-03-24 Thread Spring
d out all datetime field definition because I found there was two fields of "modified_on" and "created_on" which i have no idea where they're from since I didn't define them... One more question here is, for the above table "t_clients_in", the first

[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.id>0). Don't see anything particular in the table definition that may cause the problem. Any help would be apprecicated. Traceback Traceback (most rec

[web2py] Subfolders under /static/img

2011-11-07 Thread Spring
img under 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] Re: After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Spring
r'.*:/robots.txt', r'/go2chongqing/static/robots.txt'), ((r'.*http://go2chongqing.com.* (?P.*)', r'/app/ctr \g'))) routes_out = ((r'.*http://go2chongqing.com.* /app/ctr(?P.*)', r'\g'), (r'/app(?P.*)

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

2011-11-06 Thread Spring
r'(.*)', r'go2chongqing'), (r'/?(.*)', r'go2chongqing')) routes_in and routes_out remain unchanged. = Can anybody help on this. Thanks in advance. Spring

[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 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 th

[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 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: 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 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 ma