From 24f49e674232be7454f39cc71bc7bb15161ee94b Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 30 Aug 2011 19:30:28 +0530 Subject: [PATCH 1/2] scheduler fix --- cgi-bin/webnotes/utils/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/utils/scheduler.py b/cgi-bin/webnotes/utils/scheduler.py index 96db7bb5d8..7caa1fd6ee 100644 --- a/cgi-bin/webnotes/utils/scheduler.py +++ b/cgi-bin/webnotes/utils/scheduler.py @@ -89,7 +89,7 @@ class Scheduler: import webnotes, webnotes.defs, webnotes.db try: - webnotes.conn = webnotes.db.Database(user=db_name, password=webnotes.defs.db_password) + webnotes.conn = webnotes.db.Database(user=db_name, password=webnotes.get_db_password(db_name)) webnotes.session = {'user':'Administrator'} module = '.'.join(event.split('.')[:-1]) From d551d7db241265d2e8af033e5675b52eefe552a9 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 7 Sep 2011 14:49:13 +0530 Subject: [PATCH 2/2] added default_print_format and reduced default grid cell to 100px --- js/form.compressed.js | 5 +++-- js/widgets/form/form.js | 5 +++++ js/widgets/form/grid.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/js/form.compressed.js b/js/form.compressed.js index a29f580874..e1b4f9cf28 100644 --- a/js/form.compressed.js +++ b/js/form.compressed.js @@ -62,7 +62,8 @@ this.setup_footer();if(!(this.meta.istable||user=='Guest'))this.frm_head=new _f. this.layout.wrapper.style.backgroundColor='#'+this.meta.colour.split(':')[1];this.setup_fields_std();} _f.Frm.prototype.setup_print=function(){var fl=getchildren('DocFormat',this.meta.name,'formats','DocType');var l=[];this.default_format='Standard';if(fl.length){this.default_format=fl[0].format;for(var i=0;i'+label+'';col.label=label;if(reqd) col.childNodes[0].style.color="#D22";col.style.width=width;col.options=options;col.perm=perm;this.col_idx_by_name[fieldname]=idx;} _f.Grid.prototype.reset_table_width=function(){var w=0;for(var i=0,len=this.head_row.cells.length;i