OK. If you want more support debugging anyway, let us know. You will be always be welcome back.
On Apr 15, 7:57 am, Ishbir <ishbi...@gmail.com> wrote: > I couldn't get it working.. So in the end, I've decided to ditch > web2py coz it does lot of 'magic'; there's not much stuff left to the > developer. It's noob friendly but not for the average developer. I've > decided to go on with Pylons + Mako + SQLAlchemy + Authkit and they > very little magic. > > On Apr 14, 8:38 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > auth.define_tables() is missing > > > On Apr 14, 1:24 am, Ishbir <ishbi...@gmail.com> wrote: > > > > Okay, so far I've managed to solve all the other problems but there is > > > one that I am stuck on. This is the code- > > > >http://web2py.pastebin.com/nQMduejZ > > > > I do not want to store the username/password in the database but I > > > want to use the auth form for authentication. When I try to go to the > > > login page, it throws this exception- > > > > Traceback (most recent call last): > > > File "/home/ishbir/web2py/gluon/restricted.py", line 173, in > > > restricted > > > exec ccode in environment > > > File "/home/ishbir/web2py/applications/linkupdater/controllers/ > > > default.py", line 57, in <module> > > > File "/home/ishbir/web2py/gluon/globals.py", line 96, in <lambda> > > > self._caller = lambda f: f() > > > File "/home/ishbir/web2py/applications/linkupdater/controllers/ > > > default.py", line 34, in user > > > return dict(form=auth()) > > > File "/home/ishbir/web2py/gluon/tools.py", line 723, in __call__ > > > return self.login() > > > File "/home/ishbir/web2py/gluon/tools.py", line 978, in login > > > if 'username' in table_user.fields: > > > AttributeError: 'NoneType' object has no attribute 'fields' > > > > Any way to overcome this? > > > > On Apr 13, 5:46 pm, Ishbir <ishbi...@gmail.com> wrote: > > > > > Oh, I'm new to python so didn't know that.. thanks! > > > > > On Apr 13, 4:00 pm, Jason Brower <encomp...@gmail.com> wrote: > > > > > > For the general features I find is very well documented. It's all in > > > > > the book and that is available all online or with a purchase. > > > > > Additionally, these features are pretty new. I would rather have a > > > > > bunch of new features that increase my capabilities, rather than 1 > > > > > well > > > > > documented feature. There are other ways to see the documentation > > > > > too. > > > > > Even from the source code. Like the help(). Method. > > > > > Just my 2 cents... > > > > > Jason > > > > > > On Tue, 2010-04-13 at 03:48 -0700, Ishbir wrote: > > > > > > I found all about what I needed... however, I have found that web2py > > > > > > is not very well documented. We often have to open up the source > > > > > > files. I hope this problem can be resolved in the future. > > > > > > > On Apr 13, 2:15 pm, Ishbir <ishbi...@gmail.com> wrote: > > > > > > > Hmm.. yeah, that was kind of what I wanted; but isn't there any > > > > > > > documentation to better illuminate the alternate authentication > > > > > > > methods? > > > > > > > > On Apr 12, 8:16 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > > > auth.settings.actions_disabled.append('register') > > > > > > > > > Auth has a pluggable mechanism for alternate authentication > > > > > > > > methods. > > > > > > > > Look into the examples in gluon/contrib/login_methods > > > > > > > > > perhaps you want one of these? > > > > > > > > > On Apr 12, 9:52 am, Ishbir <ishbi...@gmail.com> wrote: > > > > > > > > > > What are the return values and stuff? Which is the method > > > > > > > > > used for > > > > > > > > > logging the user in and out; also the method for registering, > > > > > > > > > I want > > > > > > > > > it to be disabled. Possible? > > > > > > > > > > On Apr 12, 5:59 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > > > > > Yes. Auth is a class. You can extend it > > > > > > > > > > > from gluon.tools import * > > > > > > > > > > class MyAuth(Auth): > > > > > > > > > > def requires_login(self): ..... > > > > > > > > > > > auth=MyAuth(globals(),db) > > > > > > > > > > > On Apr 12, 6:21 am, Ishbir <ishbi...@gmail.com> wrote: > > > > > > > > > > > > Hey everyone, > > > > > > > > > > > > Is it possible to define custom auth methods and override > > > > > > > > > > > the existing > > > > > > > > > > > methods with our own? For e.g. I am making an application > > > > > > > > > > > that > > > > > > > > > > > authenticates against a remote website not the existing > > > > > > > > > > > application. > > > > > > > > > > > So, I just want to authenticate remotely and if it is > > > > > > > > > > > successful, just > > > > > > > > > > > get the user id and store it in session. I already have > > > > > > > > > > > the code in C# > > > > > > > > > > > to do it, am trying to make it into a web application. No > > > > > > > > > > > user > > > > > > > > > > > information in the db other than the user ID on that site. > > > > > > > > > > > > I only need help with remote authentication; I can scrape > > > > > > > > > > > other stuff > > > > > > > > > > > via regex. I should also be able to use > > > > > > > > > > > @auth.requires_login() > > > > > > > > > > > decorator so as to restrict the functions to the logged > > > > > > > > > > > in users. > > > > > > > > > > > > Is it possible? If not, any way to implement it? -- To unsubscribe, reply using "remove me" as the subject.