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

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

src/s/y/syndicate-HEAD/ms/storage/storage.py   syndicate(Download)
def _read_user_and_volume( email, volume_name_or_id ):
   user_fut = SyndicateUser.Read( email, async=True )
   volume_fut = Volume.Read( volume_name_or_id, async=True )
 
   storagetypes.wait_futures( [user_fut, volume_fut] )
def read_user( email ):
   return SyndicateUser.Read( email )
 
# ----------------------------------
def update_user( email, **fields ):

src/s/y/syndicate-HEAD/ms/common/api.py   syndicate(Download)
      if not method.method_func.need_authentication:
         # the method will perform its own authentication.  Just get the requested object
         authenticated_user = SyndicateUser.Read( username )
         if not authenticated_user:
            log.error("No such user %s" % (username) )
 
      # user is already authenticated with OpenID, so we're good!
      authenticated_user = SyndicateUser.Read( username )
      if not authenticated_user:
         log.error("No such user %s" % (username) )