This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Service_PreInvokeMethod (MethodName, Inputs:PropertySet, Outputs:PropertySet) { | |
| if (MethodName == "get"){ | |
| var MemberNumber:String = Inputs.GetProperty("MemberNumber"); | |
| var svc:Service = TheApplication().GetService("LOY Member Services"); | |
| var InpPS:PropertySet = TheApplication().NewPropertySet(); | |
| var OutPS:PropertySet = TheApplication().NewPropertySet(); | |
| InpPS.SetProperty("Member Number", MemberNumber); | |
| svc.InvokeMethod("GetMemberPointBalance", InpPS, OutPS); | |
| var OutPSCount = OutPS.GetChild(0).GetChildCount(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #Set environment | |
| export PATH=.env/bin:$PATH | |
| export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib | |
| export ORACLE_HOME=/usr/lib/oracle/11.2/client64 | |
| export TNS_ADMIN=/usr/lib/oracle/11.2/client64/network/admin | |
| #Check, enable, update virtualenv | |
| if [ -d ".env" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import re | |
| import json | |
| import logging | |
| import traceback | |
| from subprocess import Popen, PIPE | |
| from email.mime.text import MIMEText | |
| import settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import os | |
| import re | |
| from abc import ABCMeta, abstractmethod, abstractproperty | |
| from sqlalchemy.orm.exc import NoResultFound | |
| from sqlalchemy.sql.expression import and_ | |
| from malinacore.dataobjects.lpv import Card, CardHolder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Пример функции для вычисления выражений записанных в виде обратной | |
| польской нотации. | |
| OPERATORS - список доступных операторов | |
| RPNError - класс для обработки исключений | |
| FailTest - класс для проерки тест-кейсов | |
| OKTest - класс для проерки тест-кейсов |