Our website generates PDF documents on-the-fly based upon database
content.  The user who created the document should be able to view it,
but not other users, since the documents often contain private
information.  A web page on a Pylons site will contain link(s) to the
user's document, where each link is an anchor element.

Where should the documents be stored on disk: outside of the Pylons
directory tree?  If outside, configure a system variable or an Apache
setting (alias)?

What is the best way to construct the anchor elements?  Something like
this (where pdfdocs is aliased)?
  <a href="/pdfdocs/ABC12345.pdf">My Special Document</a>
Or, perhaps like this?
  <a href="/viewer.py?docid=ABC12345">My Special Document</a>
and let viewer.py return the contents of ABC12345,pdf if the user is
authorized to view it?

Thanks!
Edgar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to