diff --git a/CDB/MACI/Channels/Channels.xml b/CDB/MACI/Channels/Channels.xml new file mode 100644 index 0000000..3ce2bc7 --- /dev/null +++ b/CDB/MACI/Channels/Channels.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + diff --git a/CDB/MACI/Components/Components.xml b/CDB/MACI/Components/Components.xml new file mode 100644 index 0000000..6978bf9 --- /dev/null +++ b/CDB/MACI/Components/Components.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/CDB/MACI/Containers/aragornContainer/aragornContainer.xml b/CDB/MACI/Containers/aragornContainer/aragornContainer.xml new file mode 100644 index 0000000..7b4201d --- /dev/null +++ b/CDB/MACI/Containers/aragornContainer/aragornContainer.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + diff --git a/CDB/MACI/Containers/bilboContainer/bilboContainer.xml b/CDB/MACI/Containers/bilboContainer/bilboContainer.xml new file mode 100644 index 0000000..8135cea --- /dev/null +++ b/CDB/MACI/Containers/bilboContainer/bilboContainer.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + diff --git a/CDB/MACI/Containers/databaseContainer/databaseContainer.xml b/CDB/MACI/Containers/databaseContainer/databaseContainer.xml new file mode 100644 index 0000000..a24b8f2 --- /dev/null +++ b/CDB/MACI/Containers/databaseContainer/databaseContainer.xml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/CDB/MACI/Containers/frodoContainer/frodoContainer.xml b/CDB/MACI/Containers/frodoContainer/frodoContainer.xml new file mode 100644 index 0000000..cab7aad --- /dev/null +++ b/CDB/MACI/Containers/frodoContainer/frodoContainer.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/CDB/MACI/Managers/Manager/Manager.xml b/CDB/MACI/Managers/Manager/Manager.xml new file mode 100644 index 0000000..3ef6ed8 --- /dev/null +++ b/CDB/MACI/Managers/Manager/Manager.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CDB/alma/CLOCK1/CLOCK1.xml b/CDB/alma/CLOCK1/CLOCK1.xml new file mode 100644 index 0000000..4be8aaf --- /dev/null +++ b/CDB/alma/CLOCK1/CLOCK1.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/CDB/alma/FILTERWHEEL1/FILTERWHEEL1.xml b/CDB/alma/FILTERWHEEL1/FILTERWHEEL1.xml new file mode 100644 index 0000000..e42b729 --- /dev/null +++ b/CDB/alma/FILTERWHEEL1/FILTERWHEEL1.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/CDB/alma/FRIDGE1/FRIDGE1.xml b/CDB/alma/FRIDGE1/FRIDGE1.xml new file mode 100644 index 0000000..a4ebab1 --- /dev/null +++ b/CDB/alma/FRIDGE1/FRIDGE1.xml @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/CDB/alma/LAMP1/LAMP1.xml b/CDB/alma/LAMP1/LAMP1.xml new file mode 100644 index 0000000..b92315b --- /dev/null +++ b/CDB/alma/LAMP1/LAMP1.xml @@ -0,0 +1,17 @@ + + + + + + diff --git a/CDB/alma/LAMPWHEEL1/LAMPWHEEL1.xml b/CDB/alma/LAMPWHEEL1/LAMPWHEEL1.xml new file mode 100644 index 0000000..faf9338 --- /dev/null +++ b/CDB/alma/LAMPWHEEL1/LAMPWHEEL1.xml @@ -0,0 +1,54 @@ + + + + + + + + + + 3 + 20 + + 14521 + + + + + 5 + + 1033 + + + + 11 + 34 + + 45312 + + + + + + 8192 + + + + + 32908 + + + + diff --git a/CDB/alma/MOUNT1/MOUNT1.xml b/CDB/alma/MOUNT1/MOUNT1.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT1/MOUNT1.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/MOUNT2/MOUNT2.xml b/CDB/alma/MOUNT2/MOUNT2.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT2/MOUNT2.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/MOUNT3/MOUNT3.xml b/CDB/alma/MOUNT3/MOUNT3.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT3/MOUNT3.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/MOUNT4/MOUNT4.xml b/CDB/alma/MOUNT4/MOUNT4.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT4/MOUNT4.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/MOUNT5/MOUNT5.xml b/CDB/alma/MOUNT5/MOUNT5.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT5/MOUNT5.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/MOUNT6/MOUNT6.xml b/CDB/alma/MOUNT6/MOUNT6.xml new file mode 100644 index 0000000..3234e5b --- /dev/null +++ b/CDB/alma/MOUNT6/MOUNT6.xml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/CDB/alma/PBEND_B_01/PBEND_B_01.xml b/CDB/alma/PBEND_B_01/PBEND_B_01.xml new file mode 100644 index 0000000..78e2914 --- /dev/null +++ b/CDB/alma/PBEND_B_01/PBEND_B_01.xml @@ -0,0 +1,55 @@ + + + + + + + + diff --git a/CDB/alma/PBUMP_B_01/PBUMP_B_01.xml b/CDB/alma/PBUMP_B_01/PBUMP_B_01.xml new file mode 100644 index 0000000..620da68 --- /dev/null +++ b/CDB/alma/PBUMP_B_01/PBUMP_B_01.xml @@ -0,0 +1,55 @@ + + + + + + + + diff --git a/CDB/alma/PBUMP_B_02/PBUMP_B_02.xml b/CDB/alma/PBUMP_B_02/PBUMP_B_02.xml new file mode 100644 index 0000000..5045daf --- /dev/null +++ b/CDB/alma/PBUMP_B_02/PBUMP_B_02.xml @@ -0,0 +1,51 @@ + + + + + + + + diff --git a/CDB/alma/TEST_PS_1/TEST_PS_1.xml b/CDB/alma/TEST_PS_1/TEST_PS_1.xml new file mode 100644 index 0000000..3e9fed1 --- /dev/null +++ b/CDB/alma/TEST_PS_1/TEST_PS_1.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_10/TEST_PS_10.xml b/CDB/alma/TEST_PS_10/TEST_PS_10.xml new file mode 100644 index 0000000..3e9fed1 --- /dev/null +++ b/CDB/alma/TEST_PS_10/TEST_PS_10.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_11/TEST_PS_11.xml b/CDB/alma/TEST_PS_11/TEST_PS_11.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_11/TEST_PS_11.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_12/TEST_PS_12.xml b/CDB/alma/TEST_PS_12/TEST_PS_12.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_12/TEST_PS_12.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_13/TEST_PS_13.xml b/CDB/alma/TEST_PS_13/TEST_PS_13.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_13/TEST_PS_13.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_14/TEST_PS_14.xml b/CDB/alma/TEST_PS_14/TEST_PS_14.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_14/TEST_PS_14.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_15/TEST_PS_15.xml b/CDB/alma/TEST_PS_15/TEST_PS_15.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_15/TEST_PS_15.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_16/TEST_PS_16.xml b/CDB/alma/TEST_PS_16/TEST_PS_16.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_16/TEST_PS_16.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_17/TEST_PS_17.xml b/CDB/alma/TEST_PS_17/TEST_PS_17.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_17/TEST_PS_17.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_18/TEST_PS_18.xml b/CDB/alma/TEST_PS_18/TEST_PS_18.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_18/TEST_PS_18.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_2/TEST_PS_2.xml b/CDB/alma/TEST_PS_2/TEST_PS_2.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_2/TEST_PS_2.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_3/TEST_PS_3.xml b/CDB/alma/TEST_PS_3/TEST_PS_3.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_3/TEST_PS_3.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_4/TEST_PS_4.xml b/CDB/alma/TEST_PS_4/TEST_PS_4.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_4/TEST_PS_4.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_5/TEST_PS_5.xml b/CDB/alma/TEST_PS_5/TEST_PS_5.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_5/TEST_PS_5.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_6/TEST_PS_6.xml b/CDB/alma/TEST_PS_6/TEST_PS_6.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_6/TEST_PS_6.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_7/TEST_PS_7.xml b/CDB/alma/TEST_PS_7/TEST_PS_7.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_7/TEST_PS_7.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_8/TEST_PS_8.xml b/CDB/alma/TEST_PS_8/TEST_PS_8.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_8/TEST_PS_8.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/alma/TEST_PS_9/TEST_PS_9.xml b/CDB/alma/TEST_PS_9/TEST_PS_9.xml new file mode 100644 index 0000000..85cbe1b --- /dev/null +++ b/CDB/alma/TEST_PS_9/TEST_PS_9.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/CDB/schemas/TestPowerSupplyACS.xsd b/CDB/schemas/TestPowerSupplyACS.xsd new file mode 100644 index 0000000..da5fdbd --- /dev/null +++ b/CDB/schemas/TestPowerSupplyACS.xsd @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pyDatabase/ChangeLog b/pyDatabase/ChangeLog new file mode 100644 index 0000000..a6bf091 --- /dev/null +++ b/pyDatabase/ChangeLog @@ -0,0 +1 @@ +"@(#) $Id$" diff --git a/pyDatabase/lib/python b/pyDatabase/lib/python new file mode 120000 index 0000000..11b9d88 --- /dev/null +++ b/pyDatabase/lib/python @@ -0,0 +1 @@ +python3.12 \ No newline at end of file diff --git a/pyDatabase/lib/python3.12/site-packages/AstroDatabase/ProposalHandler.py b/pyDatabase/lib/python3.12/site-packages/AstroDatabase/ProposalHandler.py new file mode 100644 index 0000000..0c31bd4 --- /dev/null +++ b/pyDatabase/lib/python3.12/site-packages/AstroDatabase/ProposalHandler.py @@ -0,0 +1,50 @@ +import DATABASE_MODULE__POA +import DATABASE_MODULE + +from typing import Any +import TYPES +from Acspy.Servants.ACSComponent import ACSComponent +from Acspy.Servants.ContainerServices import ContainerServices +from Acspy.Servants.ComponentLifecycle import ComponentLifecycle + +STATUS_INITIAL_PROPOSAL = 0 +STATUS_NO_SUCH_PROPOSAL = -999 + +class ProposalHandler(DATABASE_MODULE__POA.DataBase, ACSComponent, ContainerServices, ComponentLifecycle): + + def __init__(self): + ACSComponent.__init__(self) + ContainerServices.__init__(self) + self._logger = self.getLogger() + + def storeProposal(self, targets: TYPES.TargetList) -> int: + """Stores a new proposal. Returns a dummy proposal ID.""" + return 0 + + def getProposalStatus(self, pid: int) -> int: + """Gets the status of a proposal. Returns a dummy status.""" + return 0 + + def removeProposal(self, pid: int) -> None: + """Removes a proposal. Dummy implementation does nothing.""" + pass + + def getProposalObservations(self, pid: int) -> TYPES.ImageList: + """Returns a list of dummy images for a proposal.""" + return TYPES.ImageList() + + def getProposals(self) -> list: + """Returns a list of dummy pending proposals.""" + return TYPES.ProposalList() + + def setProposalStatus(self, pid: int, status: int) -> None: + """Sets a proposal status. Dummy implementation does nothing.""" + pass + + def storeImage(self, pid: int, tid: int, image: TYPES.ImageType) -> None: + """Stores an image for a proposal and target. Dummy implementation does nothing.""" + return None + + def clean(self) -> None: + """Cleans up the database. Dummy implementation does nothing.""" + pass diff --git a/pyDatabase/lib/python3.12/site-packages/AstroDatabase/__init__.py b/pyDatabase/lib/python3.12/site-packages/AstroDatabase/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pyDatabase/src/AstroDatabase/ProposalHandler.py b/pyDatabase/src/AstroDatabase/ProposalHandler.py new file mode 100644 index 0000000..0c31bd4 --- /dev/null +++ b/pyDatabase/src/AstroDatabase/ProposalHandler.py @@ -0,0 +1,50 @@ +import DATABASE_MODULE__POA +import DATABASE_MODULE + +from typing import Any +import TYPES +from Acspy.Servants.ACSComponent import ACSComponent +from Acspy.Servants.ContainerServices import ContainerServices +from Acspy.Servants.ComponentLifecycle import ComponentLifecycle + +STATUS_INITIAL_PROPOSAL = 0 +STATUS_NO_SUCH_PROPOSAL = -999 + +class ProposalHandler(DATABASE_MODULE__POA.DataBase, ACSComponent, ContainerServices, ComponentLifecycle): + + def __init__(self): + ACSComponent.__init__(self) + ContainerServices.__init__(self) + self._logger = self.getLogger() + + def storeProposal(self, targets: TYPES.TargetList) -> int: + """Stores a new proposal. Returns a dummy proposal ID.""" + return 0 + + def getProposalStatus(self, pid: int) -> int: + """Gets the status of a proposal. Returns a dummy status.""" + return 0 + + def removeProposal(self, pid: int) -> None: + """Removes a proposal. Dummy implementation does nothing.""" + pass + + def getProposalObservations(self, pid: int) -> TYPES.ImageList: + """Returns a list of dummy images for a proposal.""" + return TYPES.ImageList() + + def getProposals(self) -> list: + """Returns a list of dummy pending proposals.""" + return TYPES.ProposalList() + + def setProposalStatus(self, pid: int, status: int) -> None: + """Sets a proposal status. Dummy implementation does nothing.""" + pass + + def storeImage(self, pid: int, tid: int, image: TYPES.ImageType) -> None: + """Stores an image for a proposal and target. Dummy implementation does nothing.""" + return None + + def clean(self) -> None: + """Cleans up the database. Dummy implementation does nothing.""" + pass diff --git a/pyDatabase/src/AstroDatabase/__init__.py b/pyDatabase/src/AstroDatabase/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pyDatabase/src/Makefile b/pyDatabase/src/Makefile new file mode 100644 index 0000000..0b78a5e --- /dev/null +++ b/pyDatabase/src/Makefile @@ -0,0 +1,230 @@ + +#******************************************************************************* +# PPPPPPPP +# +# "@(#) $Id$" +# +# Makefile of ........ +# +# who when what +# -------- -------- ---------------------------------------------- +# acsuser 08/05/25 created +# + +# ALMA - Atacama Large Millimeter Array +# Copyright (c) ESO - European Southern Observatory, 2014 +# (in the framework of the ALMA collaboration). +# All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#******************************************************************************* + +#******************************************************************************* +# This Makefile follows ALMA/ACS Standards (see Makefile(5) for more). +#******************************************************************************* +# REMARKS +# None +#------------------------------------------------------------------------ + +# +# user definable C-compilation flags +#USER_CFLAGS = + +# +# additional include and library search paths +#USER_INC = +#USER_LIB = + +# +# MODULE CODE DESCRIPTION: +# ------------------------ +# As a general rule: public file are "cleaned" and "installed" +# local (_L) are not "installed". + +# +# C programs (public and local) +# ----------------------------- +EXECUTABLES = +EXECUTABLES_L = + +# +# +xxxxx_OBJECTS = +xxxxx_LDFLAGS = +xxxxx_LIBS = + +# +# special compilation flags for single c sources +#yyyyy_CFLAGS = + +# +# Includes (.h) files (public only) +# --------------------------------- +INCLUDES = + +# +# Libraries (public and local) +# ---------------------------- +LIBRARIES = +LIBRARIES_L = + +# +# +lllll_OBJECTS = + +# +# Scripts (public and local) +# ---------------------------- +SCRIPTS = +SCRIPTS_L = + +# +# TCL scripts (public and local) +# ------------------------------ +TCL_SCRIPTS = +TCL_SCRIPTS_L = + +# +# Python stuff (public and local) +# ---------------------------- +PY_SCRIPTS = +PY_SCRIPTS_L = + +PY_MODULES = +PY_MODULES_L = + +PY_PACKAGES = AstroDatabase +PY_PACKAGES_L = +pppppp_MODULES = + +# +# +tttttt_OBJECTS = +tttttt_TCLSH = +tttttt_LIBS = + +# +# TCL libraries (public and local) +# ------------------------------ +TCL_LIBRARIES = +TCL_LIBRARIES_L = + +# +# +tttlll_OBJECTS = + +# +# Configuration Database Files +# ---------------------------- +CDB_SCHEMAS = + +# +# IDL Files and flags +# +IDL_FILES = +TAO_IDLFLAGS = +USER_IDL = +# +# Jarfiles and their directories +# +JARFILES= +jjj_DIRS= +jjj_EXTRAS= +# For expressing dependencies between jarfiles (parallel builds) +jjj_JLIBS= +# +# java sources in Jarfile on/off +DEBUG= +# +# ACS XmlIdl generation on/off +# +XML_IDL= +# +# Java Component Helper Classes generation on/off +# +COMPONENT_HELPERS= +# +# Java Entity Classes generation on/off +# +XSDBIND= +# +# Schema Config files for the above +# +XSDBIND_INCLUDE= +# man pages to be done +# -------------------- +MANSECTIONS = +MAN1 = +MAN3 = +MAN5 = +MAN7 = +MAN8 = + +# +# local man pages +# --------------- +MANl = + +# +# ASCII file to be converted into Framemaker-MIF +# -------------------- +ASCII_TO_MIF = + +# +# other files to be installed +#---------------------------- +INSTALL_FILES = + +# +# list of all possible C-sources (used to create automatic dependencies) +# ------------------------------ +CSOURCENAMES = \ + $(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \ + $(foreach rtos, $(RTAI_MODULES) , $($(rtos)_OBJECTS)) \ + $(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS)) + +# +#>>>>> END OF standard rules + +# +# INCLUDE STANDARDS +# ----------------- + +MAKEDIRTMP := $(shell searchFile include/acsMakefile) +ifneq ($(MAKEDIRTMP),\#error\#) + MAKEDIR := $(MAKEDIRTMP)/include + include $(MAKEDIR)/acsMakefile +endif + +# +# TARGETS +# ------- +all: do_all + @echo " . . . 'all' done" + +clean : clean_all + @echo " . . . clean done" + +clean_dist : clean_all clean_dist_all + @echo " . . . clean_dist done" + +man : do_man + @echo " . . . man page(s) done" + +install : install_all + @echo " . . . installation done" + + +#___oOo___ diff --git a/pyDatabase/src/Makefile.mk b/pyDatabase/src/Makefile.mk new file mode 100644 index 0000000..4486e76 --- /dev/null +++ b/pyDatabase/src/Makefile.mk @@ -0,0 +1,47 @@ + +#******************************************************************************* +# PPPPPPPP +# +# "@(#) $Id$" +# +# Makefile of ........ +# +# who when what +# -------- -------- ---------------------------------------------- +# acsuser 08/05/25 created +# + +# ALMA - Atacama Large Millimeter Array +# Copyright (c) ESO - European Southern Observatory, 2014 +# (in the framework of the ALMA collaboration). +# All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#******************************************************************************* + +#******************************************************************************* +# This Makefile follows ALMA/ACS Standards (see Makefile(5) for more). +#******************************************************************************* +# REMARKS +# None +#------------------------------------------------------------------------ + +MAKEID:=acs +MAKEDIR:=$(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) +MOD_PATH:=$(patsubst %/,%,$(abspath $(MAKEDIR)/..)) +MOD_NAME:=$(if $(filter ws,$(notdir $(MOD_PATH))),$(notdir $(patsubst %/,%,$(dir $(MOD_PATH)))),$(notdir $(MOD_PATH))) +MAKEDIRTMP:=$(if $(wildcard $(MAKEDIR)/../include/InclusiveMakefile.mk),$(abspath $(MAKEDIR)/..),$(shell searchFile include/InclusiveMakefile.mk))/include +$(if $(filter #error#%,$(MAKEDIRTMP)),$(error "InclusiveMakefile.mk was not found."),$(eval include $(MAKEDIRTMP)/InclusiveMakefile.mk)) +$(eval $(call genModule,$(MOD_NAME),$(MOD_PATH))) diff --git a/pyDatabase/src/module.mk b/pyDatabase/src/module.mk new file mode 100644 index 0000000..52656c9 --- /dev/null +++ b/pyDatabase/src/module.mk @@ -0,0 +1,203 @@ + +#******************************************************************************* +# PPPPPPPP +# +# "@(#) $Id$" +# +# Makefile of ........ +# +# who when what +# -------- -------- ---------------------------------------------- +# acsuser 08/05/25 created +# + +# ALMA - Atacama Large Millimeter Array +# Copyright (c) ESO - European Southern Observatory, 2014 +# (in the framework of the ALMA collaboration). +# All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#******************************************************************************* + +#******************************************************************************* +# This Makefile follows ALMA/ACS Standards (see Makefile(5) for more). +#******************************************************************************* +# REMARKS +# None +#------------------------------------------------------------------------ + +# +# user definable C-compilation flags +#USER_CFLAGS = + +# +# additional include and library search paths +#USER_INC = +#USER_LIB = + +# +# MODULE CODE DESCRIPTION: +# ------------------------ +# As a general rule: public file are "cleaned" and "installed" +# local (_L) are not "installed". + +# +# C programs (public and local) +# ----------------------------- +EXECUTABLES = +EXECUTABLES_L = + +# +# +xxxxx_OBJECTS = +xxxxx_LDFLAGS = +xxxxx_LIBS = + +# +# special compilation flags for single c sources +#yyyyy_CFLAGS = + +# +# Includes (.h) files (public only) +# --------------------------------- +INCLUDES = + +# +# Libraries (public and local) +# ---------------------------- +LIBRARIES = +LIBRARIES_L = + +# +# +lllll_OBJECTS = + +# +# Scripts (public and local) +# ---------------------------- +SCRIPTS = +SCRIPTS_L = + +# +# TCL scripts (public and local) +# ------------------------------ +TCL_SCRIPTS = +TCL_SCRIPTS_L = + +# +# Python stuff (public and local) +# ---------------------------- +PY_SCRIPTS = +PY_SCRIPTS_L = + +PY_MODULES = +PY_MODULES_L = + +PY_PACKAGES = +PY_PACKAGES_L = +pppppp_MODULES = + +# +# +tttttt_OBJECTS = +tttttt_TCLSH = +tttttt_LIBS = + +# +# TCL libraries (public and local) +# ------------------------------ +TCL_LIBRARIES = +TCL_LIBRARIES_L = + +# +# +tttlll_OBJECTS = + +# +# Configuration Database Files +# ---------------------------- +CDB_SCHEMAS = + +# +# IDL Files and flags +# +IDL_FILES = +TAO_IDLFLAGS = +USER_IDL = +# +# Jarfiles and their directories +# +JARFILES= +jjj_DIRS= +jjj_EXTRAS= +# For expressing dependencies between jarfiles (parallel builds) +jjj_JLIBS= +# +# java sources in Jarfile on/off +DEBUG= +# +# ACS XmlIdl generation on/off +# +XML_IDL= +# +# Java Component Helper Classes generation on/off +# +COMPONENT_HELPERS= +# +# Java Entity Classes generation on/off +# +XSDBIND= +# +# Schema Config files for the above +# +XSDBIND_INCLUDE= +# man pages to be done +# -------------------- +MANSECTIONS = +MAN1 = +MAN3 = +MAN5 = +MAN7 = +MAN8 = + +# +# local man pages +# --------------- +MANl = + +# +# ASCII file to be converted into Framemaker-MIF +# -------------------- +ASCII_TO_MIF = + +# +# other files to be installed +#---------------------------- +INSTALL_FILES = + +# +#>>>>> END OF standard rules + +$(MODRULE)all: $(MODPATH) $(MODDEP) + $(AT)echo " . . . $@ done" + +$(MODRULE)install: $(MODPATH) install_$(MODDEP) + $(AT)echo " . . . $@ done" + +$(MODRULE)clean: $(MODPATH) clean_$(MODDEP) + $(AT)echo " . . . $@ done" + +$(MODRULE)clean_dist: $(MODPATH) clean_dist_$(MODDEP) + $(AT)echo " . . . $@ done" diff --git a/tests/get_component.py b/tests/get_component.py new file mode 100644 index 0000000..0b811f3 --- /dev/null +++ b/tests/get_component.py @@ -0,0 +1,6 @@ +from Acspy.Clients.SimpleClient import PySimpleClient + +cli = PySimpleClient() +comp = cli.getComponent("ACS_astroDatabase") + +print(f'The Component was retrieved succesfuly and proposal status is : {comp.getProposalStatus(1)}')