/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes | Static Private Attributes
DybPython::dbsvn::Hook Class Reference
Collaboration diagram for DybPython::dbsvn::Hook:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Static Public Attributes

string tmpl

Static Private Attributes

 __str__ = lambdaself:self.tmpl%self

Detailed Description

Definition at line 243 of file dbsvn.py.


Constructor & Destructor Documentation

def DybPython::dbsvn::Hook::__init__ (   self,
  args,
  kwargs 
)

Definition at line 263 of file dbsvn.py.

00264                                        :
00265          dict.__init__(self, *args, **kwargs)
00266          self['LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH','')
00267          self['SVNLOOK']=cmd("which svnlook")
00268          self['PYTHON']=cmd("which python")
00269          self['USER']="root,blyth,zhanl"     ## SVN admin users that can OVERRIDE validations 
00270          self['XREF']=os.environ.get('DBSVN_XREF','http://dayabay.ihep.ac.cn/svn/dybsvn') 
         self['XREF_PASS']=os.environ.get('DBSVN_XREF_PASS','wrong') 

Member Data Documentation

Initial value:
"""#!/bin/bash
export LD_LIBRARY_PATH=%(LD_LIBRARY_PATH)s
export SVNLOOK=%(SVNLOOK)s

dbi=0
dirs=$(%(SVNLOOK)s dirs-changed $1 --transaction $2 )
for dir in $dirs ; do
case $dir in 
    catalog*) dbi=1 ;; 
esac
echo "dir $dir dbi $dbi " >&2    
done 

# skip DBI validation if none of the dirs-changed start with "catalog"
[ "$dbi" == "0" ] && exit 0 

%(PYTHON)s $(dirname $0)/dbsvn.py $* -X %(USER)s -r %(XREF)s -c "--username dayabay --password %(XREF_PASS)s"
exit $?
"""

Definition at line 244 of file dbsvn.py.

DybPython::dbsvn::Hook::__str__ = lambdaself:self.tmpl%self [static, private]

Definition at line 271 of file dbsvn.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:41 for DybPython by doxygen 1.7.4