Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > A way to set levels of access to users

Thread Tools

A way to set levels of access to users

Posts: n/a
Hi all,

I have this table on a database:

Table: user

coduser | username | password | securitylevel
1 | fcumana |<SHA1pass>| 0123456789qwe

where "securitylevel" is a string where the presence of each character
is a permited key for running certain functions.

For example:
def function1():
print "This is the function 'function1'"

....and/or other functions

Because securitylevel=6 exists in securitylevel in the database, the
user running it is allowed to access.

The lack here is that if there's a lot of functions and users, and I
want to enable certain users to access certain functions, then, it will
get confusing for maintain it.

Any help?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
access levels in inheritance anikispp Java 1 01-18-2010 03:29 AM
way way way OT: MCNGP Announcement Neil MCSE 174 04-17-2006 05:55 PM
AMD Opteron: 1-way, 2-way, ... Up to 8-way. John John Windows 64bit 12 12-27-2005 08:17 AM
Changing access levels of inherited base members Dave C++ 1 07-22-2005 03:22 AM
Do using declarations respect private, protected, public access levels? Siemel Naran C++ 1 03-10-2005 11:28 AM