As I said it is being used with Google Appengine and thus is simply copied into the the root folder of my application
Since it is appengine I dont have any access to sys.path On May 9, 1:39 pm, Primoz Anzur <[email protected]> wrote: > OK, yes, that was pretty dumb question. However, I'm interested, if you have > 1) your web.py in your sys.path and/or 2, do you maybe have a web.py > somewhere in your folder? That might easily explain the behavior of your > script. > > On Mon, May 9, 2011 at 10:19 AM, Primoz Anzur <[email protected]>wrote: > > > > > Which web.py version? > > > On Mon, May 9, 2011 at 10:03 AM, Dexter <[email protected]> wrote: > > >> I know this is more of a webpy forum than a python one but can > >> somebody please help > > >> On May 9, 2:02 am, Dexter <[email protected]> wrote: > >> > Errata: > >> > Missed ON APPENGINE in the last post > > >> > On May 9, 1:59 am,Dexter<[email protected]> wrote:> I am trying to > >> adapt the authentication code described here to be used > >> > > with webpy ON APPENGINE > > >> >http://jpscaletti.com/webpy_auth/ > > >> > > As such my folder structure in appengine becomes > >> > > / > >> > > web > >> > > contrib > >> > > auth > >> > > dbauth.py > >> > > views.py > >> > > db.py > >> > > . > >> > > . > >> > > wsgi.py > >> > > app.yaml > >> > > foo.py > > >> > > However in views.py when I use something like > >> > > import web.contrib.auth.dbauth as dbauth > > >> > > it throws an error saying > > >> ------------------------------------------------------------------------------------ > >> > > import web.contrib.auth.dbauth as dbauth > >> > > AttributeError: 'module' object has no attribute 'contrib' > > >> ------------------------------------------------------------------------------------ > > >> > > Cant understand where I am going wrong. By the way all the folders > >> > > have an __init__.py. They were not there initially but I did not them. > >> > > I am not sure once the SDK is restarted it would allows compiles again > >> > > with the __init__.py > > >> > > Any help please > > >> > > Thanks & Regards > >> > > PK > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "web.py" 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/webpy?hl=en. > > > -- > >http://www.wolfhowlmedia.com > > --http://www.wolfhowlmedia.com -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
