[web2py] self list:reference does not work

2013-11-17 Thread Hadi Sunyoto
the table i have:, common_type and grade is just another table with only 1 field db.define_table('coil_type', Field('common_type_id', 'reference common_type', label='Type'), Field('grade_id', 'reference grade', label='Grade'), Field('alternatives', 'list:reference coil_type'), <-- thi

[web2py] Re: Web2py admin crashes

2013-11-17 Thread Joe Magaro
Thanks dave - if I understand this correctly I need to unzip and manuall copy into my folders? On Tuesday, October 22, 2013 11:00:53 PM UTC-4, Dave S wrote: > > > > On Tuesday, October 22, 2013 6:55:37 PM UTC-7, Joe Magaro wrote: >> >> Hi Dave, >> >> Im not sure what source zip to download? Can

[web2py] Re: Markdown in web2py support for raw HTML

2013-11-17 Thread Scott Hunter
I added blank lines before & after the raw HTML; it still got escaped. On Sunday, November 17, 2013 9:56:08 PM UTC-5, Scott Hunter wrote: > > As I understand it, Markdown allows for raw HTML to be included, so long > as it is set unindented in its own "paragraph". But when I try the example > f

[web2py] Re: auto compiled like in django

2013-11-17 Thread Anthony
On Sunday, November 17, 2013 8:24:56 PM UTC-5, 黄祥 wrote: > > On Sunday, November 17, 2013 9:37:31 PM UTC+7, Anthony wrote: >> >> Python will create a .pyc file for any module (same for modules in >> web2py). However, unlike in Django, web2py model and controller files are >> not Python modules. >

[web2py] Markdown in web2py support for raw HTML

2013-11-17 Thread Scott Hunter
As I understand it, Markdown allows for raw HTML to be included, so long as it is set unindented in its own "paragraph". But when I try the example from the Markdown spec (http://daringfireball.net/projects/markdown/syntax#html), it gets escaped. My view code: {{extend 'layout.html'}} > {{fro

[web2py] Re: storing data received through HTTP request

2013-11-17 Thread melmg
I changed it to: return dict(answer=answer) but the response looked the same through Firebug... I'm sure I'm not doing it right, I was only trying to do that to see what the response looks like. My main concern is how to look through the response in "answer = conn.getresponse()" and get the valu

[web2py] Re: Storing and retrieving lists in web2py database for Google Charts

2013-11-17 Thread 黄祥
why not make it list using rows.as_list() and then you can get the data like on the controller example. ref: https://groups.google.com/forum/#!searchin/web2py/google-charts-plugin/web2py/a09_F-udFVQ/_HC5h3LB2tkJ best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: auto compiled like in django

2013-11-17 Thread 黄祥
On Sunday, November 17, 2013 9:37:31 PM UTC+7, Anthony wrote: > > Python will create a .pyc file for any module (same for modules in > web2py). However, unlike in Django, web2py model and controller files are > not Python modules. > so that's the reason, why only in modules folder, web2py autom

[web2py] MENU helper's menu item 2nd argument ignored?

2013-11-17 Thread Scott Hunter
As I understand it, the second argument in a menu item (which does not seem to be documented in the book) indicates if the item is disabled (True) or not (False). In fact, in the menu generated by the app wizard, this argument is given an expression comparing the same URL() as used for the men

[web2py] pls, where can i get web2py_manual 3rd edition

2013-11-17 Thread Olaniyi Arawande
i actually have 5th edition but i need to check something in the 3rd. pls, if anyone have it or a link to, kindly response. thanx. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/

[web2py] Re: auto compiled like in django

2013-11-17 Thread Anthony
Python will create a .pyc file for any module (same for modules in web2py). However, unlike in Django, web2py model and controller files are not Python modules. Instead, they are executed by the framework. The advantage is that changes are active immediately, without needing to restart the web s

Re: [web2py] auto compiled like in django

2013-11-17 Thread Marin Pranjić
I am not a django user but what happens if you edit a file in django? Do you need to restart the webserver to make it work? In web2py you don't (except for modules). Web2py behaves different and it has its advantages. But can you tell me why does one need compiled files during development? (In fa

Re: [web2py] Re: exact syntax for compute example

2013-11-17 Thread Alex Glaros
Thanks Ron. I didn't immediately grasp that I should have been learning Python concurrently. Alex -- 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 rec

Re: [web2py] Re: exact syntax for compute example

2013-11-17 Thread Ron McOuat
Yes, a Python feature called string formatting http://docs.python.org/2/library/stdtypes.html#string-formatting-operations r['first_name'] and r['last_name'] are processed by their str function because of the %s in "%s %s" the format specifier. The standalone % is the operator specifying string

[web2py] auto compiled like in django

2013-11-17 Thread 黄祥
hi, just wondering, why web2py didn't have auto compiled like in django? e.g. everytime create the new python file in django and then execute it (cli or browser), i observe that django always create the *.pyc (python compiled) for the file that executed. honestly, i don't know what exactly happ