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

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/n/u/numericube-twistranet-2.0.0/twistranet/twistapp/models/twistable.py   numericube-twistranet(Download)
        Just pass the request object.
        """
        from account import Account, AnonymousAccount, UserAccount
        u = getattr(request, 'user', None)
        if isinstance(u, User):
 
        # Didn't find anything. We must be anonymous.
        return AnonymousAccount()
 
    def _getAuthenticatedAccount(self, __account__ = None, request = None):
        If you want to use a system account, declare a '__account__' variable in your caller function.
        """
        from account import Account, AnonymousAccount, UserAccount
 
        # If we have the __account__ object, then it's quite obvious here...
 
            # Didn't find anything. We must be anonymous.
            return AnonymousAccount()
 
        finally:

src/n/u/numericube-twistranet-2.0.0/twistranet/twistapp/models/__init__.py   numericube-twistranet(Download)
# Importing all models from submodules
 
# Low-level stuff
from twistable import Twistable
from account import Account, AnonymousAccount