On Wednesday, June 15, 2011 3:22:02 PM UTC+2, Jim Karsten wrote:
>
> I wonder if I should be using the site-packages directory instead of a 
> shared app.


Yes.  web2py/site-packages.  It depends to some extent on how much 
app-specific references are used, I guess.  For example, if your "site 
packages" module contains functions that operate internally on objects with 
members that are only defined inside the apps, then I would rather suggest 
that that code remain within the scope of the app (and then: why share that 
code anyway between apps?), but if the code is more generic, and especially 
if multiple apps are going to use it, then site-packages is a good spot.

Reply via email to