google-code-export / sct-project

Automatically exported from code.google.com/p/sct-project
1 stars 1 forks source link

register() fails if group is None #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the register() view method (sphene/community/views.py), an exception is 
thrown if group is 
None.

The bad line is:

                  'baseurl': group.baseurl,

Original issue reported on code.google.com by zgoo...@eblong.com on 29 Aug 2009 at 12:43

GoogleCodeExporter commented 9 years ago
why is group None? SCT nowadays always requires you to have a group.. even if 
it's
just one "default" group you staticall set.

Original comment by herbert....@gmail.com on 29 Aug 2009 at 9:55

GoogleCodeExporter commented 9 years ago
I figured that since the rest of the function is set up to behave reasonably 
with no group, that line should be too. 
The login/logout/register system works fine without a group, otherwise.

If you took out the "if group == None" tests, I would also have nothing to 
complain about. :)

Original comment by zgoo...@eblong.com on 29 Aug 2009 at 3:21