Esempio n. 1
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import os as _os
import random
import wx
import wx.lib.inspection

import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
import outspline.extensions.development_api as development_api
import outspline.interfaces.wxgui_api as wxgui_api
organism_api = coreaux_api.import_optional_extension_api('organism')
links_api = coreaux_api.import_optional_extension_api('links')
wxscheduler_basicrules_api = coreaux_api.import_optional_plugin_api(
                                                    'wxscheduler_basicrules')
wxlinks_api = coreaux_api.import_optional_plugin_api('wxlinks')

import simulator
import tests


class MenuDev(wx.Menu):
    populate = None
    simulator = None
    ID_PRINT = None
    printtb = None
    all_ = None
Esempio n. 2
0
# Outspline is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
copypaste_api = coreaux_api.import_optional_extension_api('copypaste')

import outspline.info.extensions.links as info

import links
import queries


def create_copy_table():
    mem = core_api.get_memory_connection()
    cur = mem.cursor()
    cur.execute(queries.copylinks_create)
    core_api.give_memory_connection(mem)


def handle_open_database_dirty(kwargs):
Esempio n. 3
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import os as _os
import random
import wx
import wx.lib.inspection

import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
import outspline.extensions.development_api as development_api
import outspline.interfaces.wxgui_api as wxgui_api
organism_api = coreaux_api.import_optional_extension_api('organism')
links_api = coreaux_api.import_optional_extension_api('links')
wxscheduler_basicrules_api = coreaux_api.import_optional_plugin_api(
    'wxscheduler_basicrules')
wxlinks_api = coreaux_api.import_optional_plugin_api('wxlinks')

import simulator
import tests


class MenuDev(wx.Menu):
    populate = None
    simulator = None
    ID_PRINT = None
    printtb = None
    all_ = None
Esempio n. 4
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import outspline.core_api as core_api
import outspline.coreaux_api as coreaux_api
import outspline.interfaces.wxgui_api as wxgui_api
organism_alarms_api = coreaux_api.import_optional_extension_api(
                                                              'organism_alarms')
wxcopypaste_api = coreaux_api.import_optional_plugin_api('wxcopypaste')
wxalarms_api = coreaux_api.import_optional_plugin_api('wxalarms')

import msgboxes


def check_all_active_alarms_have_a_corresponding_item(kwargs):
    leftovers = set()
    for alarm in wxalarms_api.get_active_alarms():
        if alarm['filename'] not in \
                         organism_alarms_api.get_supported_open_databases() or \
                   alarm['id'] not in core_api.get_items_ids(alarm['filename']):
            leftovers.add((alarm['filename'], str(alarm['id'])))
    if leftovers:
        msgboxes.warn_generic('The following active alarms don\'t have a '
Esempio n. 5
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import outspline.core_api as core_api
import outspline.coreaux_api as coreaux_api
import outspline.interfaces.wxgui_api as wxgui_api
organism_alarms_api = coreaux_api.import_optional_extension_api(
    'organism_alarms')
wxcopypaste_api = coreaux_api.import_optional_plugin_api('wxcopypaste')
wxalarms_api = coreaux_api.import_optional_plugin_api('wxalarms')

import msgboxes


def check_all_active_alarms_have_a_corresponding_item(kwargs):
    leftovers = set()
    for alarm in wxalarms_api.get_active_alarms():
        if alarm['filename'] not in \
                         organism_alarms_api.get_supported_open_databases() or \
                   alarm['id'] not in core_api.get_items_ids(alarm['filename']):
            leftovers.add((alarm['filename'], str(alarm['id'])))
    if leftovers:
        msgboxes.warn_generic('The following active alarms don\'t have a '
Esempio n. 6
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

from outspline.coreaux_api import Event
import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
copypaste_api = coreaux_api.import_optional_extension_api('copypaste')

import outspline.info.extensions.organism as info

import queries
import items

database_open_event = Event()

extension = None


class Main(object):
    def __init__(self):
        self.rules = items.Rules()
        self.databases = {}
Esempio n. 7
0
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import json

from outspline.coreaux_api import Event
import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
copypaste_api = coreaux_api.import_optional_extension_api('copypaste')
organism_api = coreaux_api.import_optional_extension_api('organism')

import queries
import exceptions

upsert_link_event = Event()
delete_link_event = Event()
break_link_event = Event()
history_insert_event = Event()
history_update_event = Event()
history_delete_event = Event()

cdbs = set()

# This dictionary keeps track of the last target for any link that has existed
Esempio n. 8
0
# (at your option) any later version.
#
# Outspline 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Outspline.  If not, see <http://www.gnu.org/licenses/>.

import json

from outspline.coreaux_api import Event
import outspline.coreaux_api as coreaux_api
import outspline.core_api as core_api
copypaste_api = coreaux_api.import_optional_extension_api('copypaste')
organism_api = coreaux_api.import_optional_extension_api('organism')

import queries
import exceptions

upsert_link_event = Event()
delete_link_event = Event()
break_link_event = Event()
history_insert_event = Event()
history_update_event = Event()
history_delete_event = Event()

cdbs = set()

# This dictionary keeps track of the last target for any link that has existed