privilege.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # Copyright 2015 Airbus
00004 # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00005 #
00006 # Licensed under the Apache License, Version 2.0 (the "License");
00007 # you may not use this file except in compliance with the License.
00008 # You may obtain a copy of the License at
00009 #
00010 #   http://www.apache.org/licenses/LICENSE-2.0
00011 #
00012 # Unless required by applicable law or agreed to in writing, software
00013 # distributed under the License is distributed on an "AS IS" BASIS,
00014 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 # See the License for the specific language governing permissions and
00016 # limitations under the License.
00017 
00018 
00019 ## @class Privilege
00020 ## @brief Class for difine different levels of user access.
00021 class Privilege:
00022     
00023     NONE        = -1
00024     OPERATOR    = 0
00025     MAINTENANCE = 1
00026     EXPERT      = 2
00027     DEVELOPER   = 3
00028     
00029     TOSTR = {NONE       : 'none',
00030              OPERATOR   : 'operator',
00031              MAINTENANCE: 'maintenance',
00032              EXPERT     : 'expert',
00033              DEVELOPER  : 'developer'}
00034     
00035     TOLEVEL = {'none'       : NONE,
00036                'operator'   : OPERATOR,
00037                'maintenance': MAINTENANCE,
00038                'expert'     : EXPERT,
00039                'developer'  : DEVELOPER}
00040     
00041 #End of file
00042 


airbus_cobot_gui
Author(s): Martin Matignon
autogenerated on Thu Jun 6 2019 17:59:19