Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 5f1f239f authored by SILVA Ricardo's avatar SILVA Ricardo
Browse files

Vault public git migration

parent 680c133a
No related branches found
No related tags found
No related merge requests found
Pipeline #146025 failed
Showing
with 0 additions and 2306 deletions
This diff is collapsed.
This diff is collapsed.
#main {
border: 1px solid #666;
clear: both;
background: #FFF3B3;
padding-top: 2em;
}
#contents {
padding: 1.5em;
background: #FFFDF3;
min-height: 300px;
}
#header {
position: relative;
width: 100%;
height: 9em;
width: 45em; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
}
#header ul#primary {
margin: 0;
padding: 0;
position: absolute;
bottom: -1px;
width: 45em; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
}
#header ul#primary li {
display: inline;
list-style: none;
}
#header ul#primary a,#header ul#primary span,#header ul#primary a.current {
display: block;
float: left;
padding: 4px 0;
margin: 1px 2px 0 0;
color: #333;
}
#header ul#primary span,#header ul#primary a.current,#header ul#primary a.current:hover {
border: 1px solid #666;
border-bottom: none;
background: #FFF3B3;
padding-bottom: 6px;
margin-top: 0;
}
#header ul#primary a {
background: #FFFAE1;
border: 1px solid #AAA;
border-bottom: none;
}
#header ul#primary a:hover {
margin-top: 0;
border-color: #666;
background: #FFF7CD;
padding-bottom: 15px;
}
This diff is collapsed.
This diff is collapsed.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# User Input
http_proxy = 'http://x50l002:x52503@vip-proxy-l4s.snmc.cec.eu.int:8012'
domain = 'globalntt'
bearer = '081defc59e8ddf15a9083dde53942dd906484c40e683a7403f54777998127b759e7cfdff713adee1bba1e23feed7d3712ad70d3e136fb8a6f76737154b7eec09'
# End User Input
from __future__ import annotations #ApiObjBase
class ApiObjBase(object):
_data: dict
def __init__(self, data: dict = {}):
""" constructor """
self._data = data
def __iter__(self):
""" add support for json serialization by implementing the __iter__ method"""
for key in self._data:
yield key, self._data[key]
@staticmethod
def decode(obj: dict):
raise NotImplementedError
from library.leankit.models.User import User
from library.leankit.models.ClassOfService import ClassOfService
from library.leankit.models.CardType import CardType
from library.leankit.models.Lane import Lane, LaneType, LaneClassType
from library.leankit.models.Priority import Priority
from library.leankit.models.BoardLevel import BoardLevel
class BoardCustomFieldChoiceConfiguration:
choices: list
def __iter__(self):
yield 'choices', self.choises
class BoardCustomField(object):
id: str # eg. '31512088420962'
index: int # eg. '0'
type: str # eg. 'choice'
label: str # eg. 'PM'
helpText: str # eg. ''
choiceConfiguration: BoardCustomFieldChoiceConfiguration # eg. '{'choices': ['CEUPPENS Olivier (DIGIT-EXT)', 'CHEVALIER Julie (DIGIT-EXT)', 'VANHOUT Chris (DIGIT-EXT)', 'DEDONIS Vytis (DIGIT-EXT)']}'
# support for json serialization by implementing the __iter__ method
def __iter__(self):
yield 'id', self.id
yield 'index', self.index
yield 'type', self.type
yield 'label', self.label
yield 'helpText', self.helpText
yield 'choiceConfiguration', self.choiceConfiguration
class Board(object):
'''
id string The board id
title string The board title
description string The board description
boardRoleId integer The board role id
isWelcome boolean Indicates if the board is a welcome board
boardRole string The string representation of the board role
'''
id: str # eg. '31512088061881'
title: str # eg. 'testing'
description: str # eg. 'Board for Project Managers during the interim period until Planview is ready'
boardRoleId: str # eg. 'boardUser'
isWelcome: bool # eg. 'False'
boardRole: str # eg. 'boardUser'
# support for json serialization by implementing the __iter__ method
def __iter__(self):
yield 'id', self.id
yield 'title', self.title
yield 'description', self.description
yield 'boardRoleId', self.boardRoleId
yield 'isWelcome', self.isWelcome
yield 'boardRole', self.boardRole
def __getitem__(self, key):
return getattr(self, key)
def get_lane_by_name(self, lane_name: str):
return next(lane for lane in self.lanes if lane.name == lane_name)
@staticmethod
def decode(obj: dict):
newBoard = Board()
print(obj)
# {'id': '31512097494387', 'title': 'DEV HLP', 'description': '', 'boardRoleId': 2, 'isWelcome': False, 'boardRole': 'boardUser', 'level': {'id': '31512085971730', 'depth': 3, 'maxDepth': 3, 'label': 'Team', 'color': '#ff841f'}}
newBoard.id = str(obj["id"])
newBoard.title = str(obj["title"])
newBoard.description = str(obj["description"])
newBoard.boardRoleId = str(obj["boardRoleId"])
newBoard.isWelcome = bool(obj["isWelcome"])
newBoard.boardRole = str(obj["boardRole"])
return newBoard
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment