Switch to unified view

a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
...
...
220
        g = cls.query.find_and_modify(
220
        g = cls.query.find_and_modify(
221
            query={}, update={'$inc':{'next_uid': 1}},
221
            query={}, update={'$inc':{'next_uid': 1}},
222
            new=True)
222
            new=True)
223
        return g.next_uid
223
        return g.next_uid
224
224
225
            
226
class User(MappedClass):
225
class User(MappedClass):
227
    SALT_LEN=8
226
    SALT_LEN=8
228
    class __mongometa__:
227
    class __mongometa__:
229
        name='user'
228
        name='user'
230
        session = main_orm_session
229
        session = main_orm_session