[ CLASS ] - Class to operate on developers.
More...
[ CLASS ] - Class to operate on developers.
◆ __init__()
def mDeveloper.developerLib.Developer.__init__ |
( |
|
self, |
|
|
|
developer = getuser() |
|
) |
| |
Constructor.
Developer module instance could be passed as user argument as well as user name of the developer as a string.
Developer module can be obtained from mDeveloper.developerLib.Developer.getDeveloperModule method.
- Parameters
-
developer | [ str, module | getpass.getuser | in ] - User name or the module of the developer. |
- Exceptions
-
- Returns
- None - None.
◆ __str__()
def mDeveloper.developerLib.Developer.__str__ |
( |
|
self | ) |
|
String representation.
- Exceptions
-
- Returns
- str - String representation.
◆ userName()
def mDeveloper.developerLib.Developer.userName |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ name()
def mDeveloper.developerLib.Developer.name |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ position()
def mDeveloper.developerLib.Developer.position |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ email()
def mDeveloper.developerLib.Developer.email |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ site()
def mDeveloper.developerLib.Developer.site |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ url()
def mDeveloper.developerLib.Developer.url |
( |
|
self | ) |
|
Property.
- Exceptions
-
- Returns
- variant - Value.
◆ setDeveloper()
def mDeveloper.developerLib.Developer.setDeveloper |
( |
|
self, |
|
|
|
developer |
|
) |
| |
Set developer.
Developer module instance can be provided for developer
argument as well as user name of the developer as a string.
- Parameters
-
developer | [ str, module | None | in ] - Developer user name or the module of the developer. |
- Exceptions
-
ValueError | - If given developer doesn't exist. |
NameError | - If developer module doesn't have all the attributes. |
ValueError | - If an attribute ID empty and this attribute is not person website URL. |
AttributeError | - If INFO dictionary doesn't match with attributes in developer module. |
- Returns
- bool - Result.
◆ getDeveloperModule()
def mDeveloper.developerLib.Developer.getDeveloperModule |
( |
|
developerLib | ) |
|
|
static |
Get developer module for given user.
- Parameters
-
- Returns
- module - Developer module.
◆ listDevelopersAsStr()
def mDeveloper.developerLib.Developer.listDevelopersAsStr |
( |
| ) |
|
|
static |
List developer user names.
Method returns the user name of the developers with Lib postfix which represents the python modules for the developers.
- Exceptions
-
- Returns
- list of str - User name of the developers.
◆ isDeveloper()
def mDeveloper.developerLib.Developer.isDeveloper |
( |
|
user = getuser() | ) |
|
|
static |
Check whether given user is valid developer with a developer module.
- Parameters
-
user | [ str, module | getpass.getuser | in ] - User name of the user. |
- Exceptions
-
- Returns
- None - If user is not a valid developer.
-
str - Developer module name if user is a developer.
◆ listDeveloperModules()
def mDeveloper.developerLib.Developer.listDeveloperModules |
( |
| ) |
|
|
static |
List developer modules.
- Exceptions
-
- Returns
- list of module - Developer modules.
The documentation for this class was generated from the following file: