db.auth_wiki(slug=slug).title ?

On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote:
>
> The problem is that with the current approach i set the title field but i 
> have not found yer the possibility to render it :-(
>
> Looking to the code a very dirty but working workaround is to unset the 
> current.request.extension. get the wiki and set extension as before. In 
> this way i get all fields see gluon/tools.py:5090-5107. I think that we 
> just need to change a little bit the current read.
>
> Paolo
> Il giorno 27/gen/2013 18:30, "Massimo Di Pierro" 
> <[email protected]<javascript:>> 
> ha scritto:
>
>> I agree that is what it does and that is what is suposed to do. Paolo 
>> tells us it should work differently. I think that would be best done with a 
>> different API.
>>
>> Massimo
>>
>>
>>> def wiki():
>>>     return auth.wiki() # no "render" argument
>>>
>>> The output is:
>>>
>>> {'content': <gluon.html.XML object at 0xa79902c>}
>>>
>>> I guess this is the normal behavior for all .wiki calls (just the 
>>> content).
>>>
>>  -- 
>>  
>>  
>>  
>>
>  

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to