[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. Accordingly 
> to the introduction of auth.wiki it sounds like a Swiss 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 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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

2013-03-26 Thread Niphlod
though the current "recommended" way is to code such "views" on a different 
controller and embed those "views" as components 
http://web2py.com/books/default/chapter/29/03?search=wiki#Components

On Tuesday, March 26, 2013 4:40:17 PM UTC+1, Alan Etkin wrote:
>
> 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. Accordingly 
>> to the introduction of auth.wiki it sounds like a Swiss 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.
>>
>
> AFAIK, there's no support for simple db queries within markmin code. This 
> can be achieved by using custom markup and using the extra MARKMIN function 
> argument as documented in the book (in "The Views"), but it would require 
> building a custom wiki without the auth.wiki shortcut, and overriding the 
> class markmin parser or a similar workaround.
>
> I think this will be suported after adding the wiki settings feature, as 
> noted in another post (in roadmap).
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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

2013-03-26 Thread Alan Etkin

>
> 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. Accordingly 
> to the introduction of auth.wiki it sounds like a Swiss 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.
>

AFAIK, there's no support for simple db queries within markmin code. This 
can be achieved by using custom markup and using the extra MARKMIN function 
argument as documented in the book (in "The Views"), but it would require 
building a custom wiki without the auth.wiki shortcut, and overriding the 
class markmin parser or a similar workaround.

I think this will be suported after adding the wiki settings feature, as 
noted in another post (in roadmap).

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.