If you're developing code, I'd recommend getting a copy of SVN and developing it there. Use devserver.sh (in the reviewboard directory) and http://localhost:8080/ for the server. You'll have to create a settings_local.py file and run ./manage.py syncdb first.
This will give you far better error reporting for this kind of thing than the log file. Christian -- Christian Hammond - chip...@chipx86.com VMware, Inc. On Tue, Jan 27, 2009 at 8:20 AM, Łukasz Jernaś <lukasz.jer...@gmail.com>wrote: > > Hello. > > Excuse the lame question, but how do I create and use custom auth > backends? I've created a file named foo.py located in > /usr/lib/python2.5 which looks like that: > > from django.conf import settings > from django.contrib.auth.models import User > from djblets.util.misc import get_object_or_none > import logging > import urllib2 > > class BarBackend: > def authenticate(self, username, password): > logging.debug("foobar") > some other stuff compiled from backends.py > def get_or_create_user(self, username, password): > ...... > def get_user(self, user_id): > return get_object_or_none(User, pk=user_id) > > and in the backend setting in reviewboard admin I've entered foo.BarBackend > > And nothing really happens, no errors are displayed, revieboard's log > contains only: > 2009-01-26 08:24:32,707 - INFO - Logging to /tmp/reviewboard.log with > a minimum level of DEBUG > 2009-01-26 08:24:32,708 - INFO - Log file for Review Board v1.0alpha2 > > and of course I'm not able to login, it just returns an invalid user > or password.. > > Any hints? > > Regards, > -- > Łukasz Jernaś > "just ignore the smoke and smile" - apc > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "reviewboard" group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~----------~----~----~----~------~----~------~--~---