MCPcopy Create free account
hub / github.com/SimHacker/micropolis / adminUser

Method adminUser

turbogears/micropolis/controllers.py:763–779  ·  view source on GitHub ↗
(
        self,
        user_id='')

Source from the content-addressed store, hash-verified

761 @identity.require(
762 identity.in_group("admin"))
763 def adminUser(
764 self,
765 user_id=''):
766
767 if user_id:
768 user = User.query.filter_by(user_id=user_id).first()
769 if user:
770 users = [user]
771 else:
772 users = []
773 else:
774 users = User.query().all()
775
776 return {
777 'user_id': user_id,
778 'users': users,
779 }
780
781
782 ########################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected