Well, instead of returning the file from the database, you can use os.open() and return the file iterator (which would be more efficient than first reading the whole file to memory). You just need to get the correct path for the file, probably by using some __file__ or __package__ magic.
Does that help you? -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/xP_K_S7bx8wJ. 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/turbogears?hl=en.

