I use a custom 3rd party class (named 'dabo') in web2py.
Is there any catch if I keep the class in /web2py/site-packages ?

Earlier I had kept the same in /myapp/modules folder.
But it could not be imported in model files.
So I shifted it to /web2py/site-packages.
With this, I can import the class 'dabo' in model files.

---Vineet

On Sep 26, 7:36 am, Anthony <abasta...@gmail.com> wrote:
> Both the custom importer and the 'current' object are relatively new (added
> since book's last major revision), so they're not documented yet (except in
> this mailing list). Prior to that, it was of course possible to use modules,
> but not quite as easy. The book will be revised soon, so these things will
> be documented.
>
> Anthony
>
>
>
> On Sunday, September 25, 2011 9:32:24 PM UTC-4, monotasker wrote:
>
> > This is great. Thanks again Anthony.
>
> > I'm surprised that this approach doesn't seem to be well documented in the
> > (generally outstanding) web2py book. Is it not encouraged as 'the web2py
> > way' or is it taken for granted that people with Python knowledge can figure
> > it out? (Or have I just missed it in there?)
>
> > Ian- Hide quoted text -
>
> - Show quoted text -

Reply via email to