CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
cfg-viewer.server Class Reference

Public Member Functions

def __init__
 
def printServer
 

Detailed Description

Definition at line 1268 of file cfg-viewer.py.

Constructor & Destructor Documentation

def cfg-viewer.server.__init__ (   self,
  name 
)

Definition at line 1269 of file cfg-viewer.py.

References cfg-viewer.server.printServer().

1270  def __init__(self, name):
1271  self.printServer(name)

Member Function Documentation

def cfg-viewer.server.printServer (   self,
  name 
)

Definition at line 1272 of file cfg-viewer.py.

Referenced by cfg-viewer.server.__init__().

1273  def printServer(self, name):
1274  with open(name, 'w') as f:
1275  f.write("""
1276 #!/usr/bin/env python\nimport SimpleHTTPServer\nimport SocketServer
1277 import shutil\nimport os\nimport cgi\nimport socket\nimport errno\n
1278 #Right now cannot deal with SequenceTypes\nclass CfgConvert:
1279  def __init__(self, obj):\n self._pName = obj["processName"]
1280  self._pFileN = obj["processFileName"]\n obj.__delitem__("processName")
1281  obj.__delitem__("processFileName")\n self._obj = obj
1282  self._func="cms.%s"
self.header=\"""import FWCore.ParameterSet.Config as cms