예제 #1
0
 def get(self, user, tab='ls', q=None, limit=None, timestamp=None):
     ""
     assert tab == 'ls'
     # TODO: replace this by a (cached) hashtable solution
     ars = api.all_aliases(user)
     vs = [a.handle for a in ars if a.handle.startswith(q)]
     return 'text/plain', '\n'.join(vs)
예제 #2
0
 def get(self, user):
     return 'user-aliases', {
             # TODO: display settings, actions
             'user': user,
             'aliases': api.all_aliases(user) }