~ubuntu-branches/ubuntu/hardy/gnue-common/hardy

« back to all changes in this revision

Viewing changes to src/logic/GTriggerCore.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-03-09 11:06:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050309110631-8gvvn39q7tjz1kj6
Tags: upstream-0.5.14
ImportĀ upstreamĀ versionĀ 0.5.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This file is part of GNU Enterprise.
 
3
#
 
4
# GNU Enterprise is free software; you can redistribute it 
 
5
# and/or modify it under the terms of the GNU General Public
 
6
# License as published by the Free Software Foundation; either 
 
7
# version 2, or (at your option) any later version.
 
8
#
 
9
# GNU Enterprise is distributed in the hope that it will be
 
10
# useful, but WITHOUT ANY WARRANTY; without even the implied 
 
11
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
 
12
# PURPOSE. See the GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public 
 
15
# License along with program; see the file COPYING. If not, 
 
16
# write to the Free Software Foundation, Inc., 59 Temple Place 
 
17
# - Suite 330, Boston, MA 02111-1307, USA.
 
18
#
 
19
# Copyright 2000-2005 Free Software Foundation
 
20
#
 
21
#
 
22
# FILE:
 
23
# GCoreTrigger.py
 
24
#
 
25
# DESCRIPTION:
 
26
# A base class inherited by GObj.  It's only purpose
 
27
# is to keep all the trigger code in one place instead
 
28
# of tacking some trigger code into GObj directly
 
29
# It's in it's own file to prevent circular imports
 
30
#
 
31
# NOTES:
 
32
#
 
33
 
 
34
#
 
35
# GTriggerCore
 
36
#
 
37
#
 
38
class GTriggerCore:
 
39
  def __init__(self):
 
40
    self._triggerGlobal = 0
 
41
    self._triggerFunctions = {}
 
42
 
 
43
    self._triggerProperties = {}
 
44
 
 
45
    #
 
46
    # Dictionary representing this object's
 
47
    # local namespace.  Populated as part of
 
48
    # GTriggerNamespace.constructTriggerObject
 
49
    #
 
50
    self._localTriggerNamespace = {}
 
51
    
 
52
    #
 
53
    # Links to functions to be used when
 
54
    # trigger attempts to directly set or get
 
55
    # the objects by name
 
56
    #
 
57
    self._triggerSet = None
 
58
    self._triggerGet = None
 
59
 
 
60
 
 
61
    #
 
62
    # Dict of triggers that are valid for this specific 
 
63
    # object
 
64
    #
 
65
    self._validTriggers = {}
 
66