Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(24)  |  Derive(0)  |  Import(2)

        def reqattr(request, attr):
    try:
        return request[attr]
    except:
        return None
        


src/z/o/Zope2-2.13.22/src/OFS/userfolder.py   Zope2(Download)
from AccessControl.users import _remote_user_mode
from AccessControl.users import emergency_user
from AccessControl.users import reqattr
 
 
        if submit=='Edit':
            try:
                user=self.getUser(reqattr(REQUEST, 'name'))
            except:
                return MessageDialog(
 
        if submit=='Add':
            name = reqattr(REQUEST, 'name')
            password = reqattr(REQUEST, 'password')
            confirm = reqattr(REQUEST, 'confirm')

src/z/o/Zope-HEAD/src/OFS/userfolder.py   Zope(Download)
from AccessControl.users import _remote_user_mode
from AccessControl.users import emergency_user
from AccessControl.users import reqattr
 
 
        if submit=='Edit':
            try:
                user=self.getUser(reqattr(REQUEST, 'name'))
            except:
                return MessageDialog(
 
        if submit=='Add':
            name = reqattr(REQUEST, 'name')
            password = reqattr(REQUEST, 'password')
            confirm = reqattr(REQUEST, 'confirm')