Ok, to respond to myself here is a quick fix:

in http.py do

from application import loadhook

and in Reloader class change

web.loadhooks['reloader'] = self.check

to

loadhook(self.check)

and to load the database use:

def loaddb():
    web.database(**web.config.db_parameters)
app.add_processor(web.loadhook(loaddb))


On Oct 6, 9:27 am, blaf <[EMAIL PROTECTED]> wrote:
> It seems to have a problem with the reloader class:
>
> : ("'module' object has no attribute 'loadhooks'",)
> Traceback:
> function         in run.py at line 89
> function run     in application.py at line 179
> function wsgifunc        in application.py at line 161
> function __init__        in http.py at line 181
>
> On Oct 5, 11:15 pm, Anand <[EMAIL PROTECTED]> wrote:
>
> > import web
>
> > urls = (
> >      '/(.*)', 'hello'
> > )
> > app = web.application(urls, globals())
>
> > class hello:
> >      def GET(self, name):
> >          i = web.input(times=1)
> >          if not name: name = 'world'
> >          for c in xrange(int(i.times)): print 'Hello,', name+'!'
>
> > application = app.wsgifunc()


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to