Did I find the right examples for you? yes no

All Samples(16)  |  Call(13)  |  Derive(0)  |  Import(3)

src/p/a/password.ly-HEAD/private.py   password.ly(Download)
from passwordly import generatePassword, createHash
 
from util import db, app, log_event
 
@app.route('/<string:username>/sync', methods=['POST'])
 
  if not user_password:
    log_event('sync-fail', {'username': username})
 
    return '{"result": false, "sites": {}}'
      ours[site] = comment
 
  log_event('sync', {'username': username})
  return json.dumps({"result": True, "sites": ours})
 
  sites = user and user.getSites(password)
 
  log_event('get-sites', {
    'username': username,
    'found': (sites is not None)
 
  if not user_password:
    log_event('password-unknown', {
      'username': username,
      })

src/p/a/password.ly-HEAD/app.py   password.ly(Download)
from user import User, UserPassword
from passwordly import generatePassword, createHash, checkHash
from util import app, db, log_event, get_distinct_id, set_distinct_id
 
# Import the routes for public/private area
 
  # Log a pageview
  log_event('pageview')
 
 
def test_event():
  log_event('test', {'a': 1, 'c': 3, 'e': 'eee'})
  return 'Event logged.'
 
if __name__ == '__main__':

src/p/a/password.ly-HEAD/public.py   password.ly(Download)
from user import User, UserPassword
from passwordly import generatePassword, createHash
from util import db, app, log_event
 
import config
  }
 
  log_event('public-generate')
  return render_template('public/password.htm', **params)
 
      }))
 
    log_event('request-signup', {
      'username': username
      })
  # Store any/all ipn requests for future
  db.rpush('ipn', json.dumps(request.form))
  log_event('ipn', request.form)
 
  # Fetch details from request
 
    # Everything okay, actually perform the signup
    log_event('signup-complete', {"username": username})
    User.signup(db, username)
  else: