Actually I think I was doing something wrong I was importing dbauth in views and views in dbauth and I believe that was the cause of the error.
Could that be the case ? On May 9, 7:33 pm, Franck <[email protected]> wrote: > In views.py, can you add : > > import web > print web.__dict__ > > And send us the result ? > > Cheers > > > > > > > > On Mon, May 9, 2011 at 1:30 PM, Dexter <[email protected]> wrote: > > 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. -- 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.
