[web2py] Re: built-in wiki

2016-04-22 Thread briannd81
Solution to this is pass in argument attachment=False when calling response.download inside media function from tools.py On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > > I use the built-in wiki for my application. I created a page (slug) and > upload the image using t

[web2py] Re: built-in wiki

2016-04-20 Thread briannd81
Can you elaborate more on both solutions? How can I get this to work when I create the image link inside the slug? On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > > I use the built-in wiki for my application. I created a page (slug) and > upload the image using the bui

[web2py] Re: built-in wiki

2016-04-20 Thread Dave S
On Wednesday, April 20, 2016 at 8:35:45 AM UTC-7, bria...@gmail.com wrote: > > I apologize. My initial question is not very clear so I'll rephrase it > more appropriately. > > The problem here is that when I link to the image it's saving it instead > of display it, and the latter is my intentio

[web2py] Re: built-in wiki

2016-04-20 Thread Leonel Câmara
You can either make another download controller or use a request.vars to flag that you don't want the link to download, example making another controller function just for this: @cache.action() def download_noattach(): return response.download(request, db, attachment=False) -- Resources:

[web2py] Re: built-in wiki

2016-04-20 Thread briannd81
I apologize. My initial question is not very clear so I'll rephrase it more appropriately. The problem here is that when I link to the image it's saving it instead of display it, and the latter is my intention. It looks like this feature is built into web2py. I think the following HTTP header

[web2py] Re: built-in wiki

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 3:36:18 PM UTC-7, Dave S wrote: > > > > On Tuesday, April 19, 2016 at 2:09:32 PM UTC-7, bria...@gmail.com wrote: >> >> I uploaded the image via the media function of the built-in wiki. I >> created a link to the larger image to display it when user click on >> the th

[web2py] Re: built-in wiki

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 2:09:32 PM UTC-7, bria...@gmail.com wrote: > > I uploaded the image via the media function of the built-in wiki. I > created a link to the larger image to display it when user click on > the thumbnail. But instead, it downloads the larger image. > > Please advise h

[web2py] Re: built-in wiki

2015-01-11 Thread Niphlod
http://web2py.com/books/default/chapter/29/03/overview#Extending-the-auth-wiki-feature On Sunday, January 11, 2015 at 5:50:24 PM UTC+1, mweissen wrote: > > I want to use the built-in wiki. > Ok, it starts. But (silly question): where is the storage for the new > pages. Is it a database table? But

[web2py] Re: built-in wiki

2013-10-29 Thread 98ujko9
Thanks for reporting the issue. On Tuesday, October 29, 2013 3:38:04 PM UTC-4, Alan Etkin wrote: > > >> >> Note: The current markmin render engine requires a first line-break for >> multi-line code, otherwise it renders as single line. Try adding a leading >> line-break in the text box. >> > >

[web2py] Re: built-in wiki

2013-10-29 Thread Alan Etkin
> > Note: The current markmin render engine requires a first line-break for > multi-line code, otherwise it renders as single line. Try adding a leading > line-break in the text box. > Nevermind that. http://code.google.com/p/web2py/issues/detail?id=1746 -- Resources: - http://web2py.com -

[web2py] Re: built-in wiki

2013-10-29 Thread Alan Etkin
> Why is it that when I click the preview button the style for markmin items like ``this is some code`` looks OK (code is highlighted, break > lines are present) and when I click on submit a record I see a page where code text is in a different style (in red color and there is no line > breaks)

[web2py] Re: built-in wiki

2013-10-29 Thread Alan Etkin
> > Hello, > I am new to web programming. I use web2py built-in wiki: auth.wiki(), the > simplest form. Why is it that when I click the preview button the style for > markmin items like ``this is some code`` looks OK (code is highlighted, > break lines are present) and when I click on submit a