mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
runbot move constants
This commit is contained in:
parent
75b6cef68c
commit
3ae2ab8435
@ -33,6 +33,19 @@ from openerp.addons.website_sale.controllers.main import QueryURL
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
#----------------------------------------------------------
|
||||
# Runbot Const
|
||||
#----------------------------------------------------------
|
||||
|
||||
_re_error = r'^(?:\d{4}-\d\d-\d\d \d\d:\d\d:\d\d,\d{3} \d+ (?:ERROR|CRITICAL) )|(?:Traceback \(most recent call last\):)$'
|
||||
_re_warning = r'^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d,\d{3} \d+ WARNING '
|
||||
_re_job = re.compile('job_\d')
|
||||
|
||||
LABELS = {
|
||||
1: 'RDWIP',
|
||||
2: 'OE',
|
||||
}
|
||||
|
||||
#----------------------------------------------------------
|
||||
# RunBot helpers
|
||||
#----------------------------------------------------------
|
||||
@ -60,10 +73,6 @@ def grep(filename, string):
|
||||
return open(filename).read().find(string) != -1
|
||||
return False
|
||||
|
||||
_re_error = r'^(?:\d{4}-\d\d-\d\d \d\d:\d\d:\d\d,\d{3} \d+ (?:ERROR|CRITICAL) )|(?:Traceback \(most recent call last\):)$'
|
||||
_re_warning = r'^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d,\d{3} \d+ WARNING '
|
||||
_re_job = re.compile('job_\d')
|
||||
|
||||
def rfind(filename, pattern):
|
||||
"""Determine in something in filename matches the pattern"""
|
||||
if os.path.isfile(filename):
|
||||
@ -1235,12 +1244,6 @@ class RunbotController(http.Controller):
|
||||
]
|
||||
return request.render("runbot.badge_" + theme, data, headers=headers)
|
||||
|
||||
|
||||
LABELS = {
|
||||
1: 'RDWIP',
|
||||
2: 'OE',
|
||||
}
|
||||
|
||||
# kill ` ps faux | grep ./static | awk '{print $2}' `
|
||||
# ps faux| grep Cron | grep -- '-all' | awk '{print $2}' | xargs kill
|
||||
# psql -l | grep " 000" | awk '{print $1}' | xargs -n1 dropdb
|
||||
|
Loading…
Reference in New Issue
Block a user