If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    frank  12 years ago
    very useful slice,thanks you very much, I got one issue when I take use of same code with web2pyslice user module by using client tools, I used the use same user management code as web2pyslices in my program which work perfectly in 1. 91.6,when I upgrade to 1.99.4?there is login issue which say as following, 'registration_id' Traceback (most recent call last): File "D:\my project\web2py\gluon\restricted.py", line 204, in restricted exec ccode in environment File "D:/my project/web2py/applications/caicaifu/controllers/default.py", line 904, in File "D:\my project\web2py\gluon\globals.py", line 172, in self._caller = lambda f: f() File "D:/my project/web2py/applications/caicaifu/controllers/default.py", line 134, in user form=auth() File "D:\my project\web2py\gluon\tools.py", line 1141, in __call__ return getattr(self,args[0])() File "D:\my project\web2py\gluon\tools.py", line 1728, in login user = self.get_or_create_user(form.vars) File "D:\my project\web2py\gluon\tools.py", line 1454, in get_or_create_user if user and user.registration_id and user.registration_id!=keys.get('registration_id',None): File "D:\my project\web2py\gluon\dal.py", line 4440, in __getattr__ return self[key] File "D:\my project\web2py\gluon\dal.py", line 4431, in __getitem__ return dict.__getitem__(self, key) KeyError: 'registration_id' do you have same issue? I want to know which version of web2py using in this web2pyslices production site,have you try 1.99.4?

Commented on:

This is a helper module that I wrote for web2py that lets you do some interesting and useful things with client side script. You can manage resources (scripts and css), events and other behavior from the server. License changed to MIT but I can't update the files.

Hosting graciously provided by:
Python Anywhere