CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
o2o.O2OJobMgr Class Reference
Inheritance diagram for o2o.O2OJobMgr:
o2o.O2OMgr

Public Member Functions

def __init__
 
def add
 
def connect
 
def set
 
- Public Member Functions inherited from o2o.O2OMgr
def __init__
 
def getSession
 
def logger
 

Public Attributes

 session
 
- Public Attributes inherited from o2o.O2OMgr
 eng
 
 logger
 

Detailed Description

Definition at line 93 of file o2o.py.

Constructor & Destructor Documentation

def o2o.O2OJobMgr.__init__ (   self)

Definition at line 95 of file o2o.py.

95 
96  def __init__( self ):
97  O2OMgr.__init__(self)
def __init__
Definition: o2o.py:95

Member Function Documentation

def o2o.O2OJobMgr.add (   self,
  job_name,
  tag,
  int_val,
  en_flag 
)

Definition at line 105 of file o2o.py.

Referenced by counter.Counter.register().

106  def add( self, job_name, tag, int_val, en_flag ):
107  res = self.session.query(O2OJob.enabled).filter_by(name=job_name)
108  enabled = None
109  for r in res:
110  enabled = r
111  if enabled:
112  print 'ERROR: a job called %s exists already.' %job_name
113  return False
114  job = O2OJob(name=job_name,tag_name=tag,enabled=en_flag,interval=int_val)
115  self.session.add(job)
116  self.session.commit()
117  return True
def add
Definition: o2o.py:105
def o2o.O2OJobMgr.connect (   self,
  service,
  auth 
)

Definition at line 98 of file o2o.py.

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.__init__(), Vispa.Views.PropertyView.BooleanProperty.__init__(), Vispa.Gui.FindDialog.FindDialog._addScript(), Vispa.Gui.FindDialog.FindDialog._addStringProperty(), Vispa.Main.Application.Application._connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView._createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog.addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer.addWidget(), Vispa.Views.PropertyView.PropertyView.append(), Vispa.Views.PropertyView.PropertyView.appendAddRow(), Vispa.Main.Application.Application.createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton(), Vispa.Views.LineDecayView.LineDecayView.createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.find(), Vispa.Gui.PortWidget.PortWidget.mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty.setChecked(), Vispa.Main.SplitterTab.SplitterTab.setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab.setController(), Vispa.Views.PropertyView.BooleanProperty.setReadOnly(), Vispa.Views.PropertyView.DropDownProperty.setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setTab(), Vispa.Views.PropertyView.IntegerProperty.setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateViewMenu().

98 
99  def connect( self, service, auth ):
100  self.session = O2OMgr.getSession( self, service, auth )
101  if self.session is None:
102  return False
103  else:
104  return True
def connect
Definition: o2o.py:98
def o2o.O2OJobMgr.set (   self,
  job_name,
  en_flag 
)

Definition at line 118 of file o2o.py.

Referenced by betterConfigParser.BetterConfigParser.getGeneral().

119  def set( self, job_name, en_flag ):
120  res = self.session.query(O2OJob.enabled).filter_by(name=job_name)
121  enabled = None
122  for r in res:
123  enabled = r
124  if not enabled:
125  print 'ERROR: a job called %s does not exist.' %job_name
126  return
127  job = O2OJob(name=job_name,enabled=en_flag)
128  self.session.merge(job)
129  self.session.commit()
def set
Definition: o2o.py:118

Member Data Documentation

o2o.O2OJobMgr.session

Definition at line 99 of file o2o.py.