Hi,

I'm pretty new to web2py, I picked it beq I needed to get something up 
running pretty fast. 
And it seemed really nice with a good balance with framework and freedom :)
I have searched the groups and not really come up with anything that seems 
to fit.

I'm creating a simple ticketsystem to a wifi guest solution.
The thing I'm "stuck" with now is how to best print the "tickets".

If there is any best practices with this?

Today I have my vars and send it with a redirect(URL('single_add'))
Here I use the simplest possible:
---
{{extend 'layout.html'}}
<ul>
<li><b>{{=T("Name")}}:</b> {{=session.vars.firstname}} 
{{=session.vars.lastname}}</li>
<li><b>{{=T("Username")}}:</b> {{=session.username}} </li>
<li><b>{{=T("Password")}}: </b> {{=session.value}}</li>
<li><b>{{=T("Use until")}}: </b> {{=session.remove_on}}</li>
</ul>
<a href="#" onclick="window.print(); return false;">Print</a>  
---
The only use for this page is to print out the vars, there is no need to 
even show it on the screen.
It would be nice for the users if they not needed to press the print link.

I looked in to create a pdf and print it out, but it seems overkill for 
this little app?

Humm, perhaps this isn't making any sense to you :)

But if you have any suggestions or ideas, pls fire away.

--
Regards Falk

Reply via email to