Thanks Cliff. Will look into PDF creation.
On Tue, Dec 20, 2011 at 10:18 PM, Cliff cjk...@gmail.com wrote:
The browser controls the content of those headers and footers,
according to user settings.
I don't think there is a way to override it.
If you want total control you need to present a
I'm also trying to figure out the best way to print invoices from a view.
My problem is a url at the bottom of a document, which is sent by a
browser.
In one of the threads someone suggested to remove this line: a:after {
content: ( attr(href) ); } from base.css, and I did, but I still see
The browser controls the content of those headers and footers,
according to user settings.
I don't think there is a way to override it.
If you want total control you need to present a pdf.
On Dec 20, 5:36 pm, Adi adnan.smajlo...@gmail.com wrote:
I'm also trying to figure out the best way to
Thanks. I am having a problem with response.render. Followed example
in the book but the controller below shows test.html but
response.render returns the generic view. Am I missing something?
def test():
customer = db.customer[1]
html = response.render('test.html',
Is test.html inside /views/default/? In that case, you need to do
response.render('default/test.html',...) -- otherwise, if response.render
can't find the view, I think it will just revert to the generic view.
Anthony
On Friday, June 24, 2011 7:35:25 AM UTC-4, apple wrote:
Thanks. I am
Thanks. I had incorrectly assumed it treated the views/controller
directory as the current one.
On Jun 24, 3:50 pm, Anthony abasta...@gmail.com wrote:
Is test.html inside /views/default/? In that case, you need to do
response.render('default/test.html',...) -- otherwise, if response.render
On Friday, June 24, 2011 11:29:20 AM UTC-4, apple wrote:
Thanks. I had incorrectly assumed it treated the views/controller
directory as the current one.
By default, if no view is specified, it will look for
/views/current_controller/current_function.html and use generic.html if it
can't
That is not the case with response.render. By default if you just
specify the filename then it looks first in views not in views/
controller.
On Jun 24, 4:33 pm, Anthony abasta...@gmail.com wrote:
On Friday, June 24, 2011 11:29:20 AM UTC-4, apple wrote:
Thanks. I had incorrectly assumed it
On Friday, June 24, 2011 12:13:25 PM UTC-4, apple wrote:
That is not the case with response.render. By default if you just
specify the filename then it looks first in views not in views/
controller.
Right, I think you misunderstood what I wrote -- by default *if you don't
specify any
If you want the html returned by a view, you can call response.render(view,
vars) directly (vars is a dictionary of variables to make available to the
view file). See
http://web2py.com/book/default/chapter/05#Using-the-Template-System-to-Generate-Emails
for
an example.
Note, there's also a
10 matches
Mail list logo