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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/t/u/turbulenz_local-1.1.4/turbulenz_local/models/userlist.py   turbulenz_local(Download)
from pylons import request, response
 
from turbulenz_local.models.user import User
from turbulenz_local.tools import get_absolute_path
from turbulenz_local.lib.exceptions import BadRequest
    def _add_user(self, user_info):
        user = User(user_info)
        self.users[user.username] = user
        return user
 
                    # dont overwrite changed user settings
                    if u['username'].lower() not in self.users:
                        user = User(u, default=True)
                        username = user.username.lower()
                        self.users[username] = user

src/t/u/turbulenz_local-HEAD/turbulenz_local/models/userlist.py   turbulenz_local(Download)
from pylons import request, response
 
from turbulenz_local.models.user import User
from turbulenz_local.tools import get_absolute_path
from turbulenz_local.lib.exceptions import BadRequest
    def _add_user(self, user_info):
        user = User(user_info)
        self.users[user.username] = user
        return user
 
                    # dont overwrite changed user settings
                    if u['username'].lower() not in self.users:
                        user = User(u, default=True)
                        username = user.username.lower()
                        self.users[username] = user