Package coprs :: Module models :: Class User
[hide private]
[frames] | no frames]

Class User

source code


Instance Methods [hide private]
 
name(self)
Return the short username of the user, e.g.
source code
 
permissions_for_copr(self, copr)
Get permissions of this user for the given copr.
source code
 
can_build_in(self, copr)
Determine if this user can build in the given copr.
source code
 
user_teams(self) source code
 
user_groups(self) source code
 
can_build_in_group(self, group)
:type group: Group
source code
 
can_edit(self, copr)
Determine if this user can edit the given copr.
source code
 
serializable_attributes(self) source code
 
coprs_count(self)
Get number of coprs for this user.
source code
 
gravatar_url(self)
Return url to libravatar image.
source code

Inherited from helpers.Serializer: to_dict

Class Variables [hide private]
  __table__ = outerjoin(_UserPublic.__table__, _UserPrivate.__ta...
  id = column_property(_UserPublic.__table__.c.id, _UserPrivate....
Method Details [hide private]

name(self)

source code 

Return the short username of the user, e.g. bkabrda

Decorators:
  • @property

permissions_for_copr(self, copr)

source code 

Get permissions of this user for the given copr. Caches the permission during one request, so use this if you access them multiple times

user_teams(self)

source code 
Decorators:
  • @property

user_groups(self)

source code 
Decorators:
  • @property

serializable_attributes(self)

source code 
Decorators:
  • @property
Overrides: helpers.Serializer.serializable_attributes

coprs_count(self)

source code 

Get number of coprs for this user.

Decorators:
  • @property

gravatar_url(self)

source code 

Return url to libravatar image.

Decorators:
  • @property

Class Variable Details [hide private]

__table__

Value:
outerjoin(_UserPublic.__table__, _UserPrivate.__table__)

id

Value:
column_property(_UserPublic.__table__.c.id, _UserPrivate.__table__.c.u\
ser_id)