def __init__(self,opt): self.func_me_color=opt['colors']['caller_color'] #self.soc=stdout_colours.stdout_colors(colors_active=opt['colors']['colors_active'],output_caller=opt['colors']['output_caller'],caller_color=opt['colors']['caller_color'],show_lineno_write=opt['colors']['show_lineno_write'],show_lineno_caller=opt['colors']['show_lineno_caller'],break_all=opt['colors']['break_all']) from stdout import colors as _c self.soc=_c(1,__name__) del _c self.soc.me_him(['ENTER:',__name__],self.func_me_color) # if not opt['flavors']['pcreamysql'] or opt['environ']['mysql_login_bypass']: # print "\n\n %s depends on mysql.\n PLEASE ENABLE PCREAMYSQL\n"% (opt['jar_name']),sys.exit(1) if not opt['flavors']['pcrunchly'] or opt['environ']['site_login_bypass']: print "\n\n %s depends on curl/urllib.\n PLEASE ENABLE PCRUNCHLY\n"% (opt['jar_name']),sys.exit(1) self.opt=opt self.data = self.opt['data'] self.files=self.opt['files'] self.site=self.opt['site'] self.site_name=self.opt['site_name'] self.site_dir=self.opt['site_dir'] # self.func_M=jar_model.jar_model(self.opt) self.func_H=jar_helpers.jar_helpers(self.opt) self.soc.me_him(['EXIT:',__name__],self.func_me_color)
def __init__(self,opt): self.func_me_color=opt['colors']['caller_color'] from stdout import colors as _c self.soc=_c(1,__name__) del _c self.soc.me_him(['ENTER:',__name__],self.func_me_color) self.opt=opt self.soc.me_him(['EXIT:',__name__],self.func_me_color)
def __init__(self,text="",timeout=1): from stdout import colors as _c self.soc=_c(1,logger=__name__,level="WARN",log_filename=os.environ["PWD"]+"/logs/"+__name__+".eggo.log",colors_active=1,output_caller=0) del _c self.FAIL="FAIL" self.text=text self.timeout=timeout self.text="".join(self.text.split(" ")) self.text=list(self.text) self.banner_text="" self.colori=0 self.color="" #google colors in reverse and forwards self.color_order=["red","green","blue","yellow","red","blue","red","yellow","blue","green","red"]