grate.mongo

class grate.mongo.User(**values)
exception DoesNotExist
exception User.MultipleObjectsReturned
User.add_key(key)

Add the given key to this user.

Parameters:key – A PublicKey.
Returns:True if the key is added. False if the key is a duplicate.
Return type:bool
User.add_repo(repo)
Parameters:repo – Repo
User.admin_groups(*args, **kwargs)
User.all_repos()
User.emails

A list field that wraps a standard field, allowing multiple instances of the field to be used as a list in the database.

User.get_groups()
User.keys

A list field that wraps a standard field, allowing multiple instances of the field to be used as a list in the database.

User.owned_groups(*args, **kwargs)
User.owned_repos

A list field that wraps a standard field, allowing multiple instances of the field to be used as a list in the database.

class grate.mongo.PublicKey(*args, **kwargs)
classmethod fromString(data)
Parameters:data – A string like ssh-rsa BASE64DATA (optional-username)
Return type:PublicKey
classmethod fromKey(key)
Parameters:key – An instance of twisted.conch.ssh.keys.Key
Return type:PublicKey
__getattr__(name)
__setattr__(name, value)
fingerprint()
grate.mongo.initialize()

Previous topic

grate.server

Next topic

grate.githandle

This Page