[IMP] Remove the print statements
bzr revid: stephane@tinyerp.com-20081210223019-mzeqrvb35kwp0s3l
This commit is contained in:
parent
724bd15772
commit
3b6af7246b
|
@ -264,7 +264,6 @@ class partner_balance(report_sxw.rml_parse):
|
|||
"GROUP BY p.id, p.ref, p.name,l.account_id,ac.name,ac.code " \
|
||||
"ORDER BY l.account_id,p.name")
|
||||
res = self.cr.dictfetchall()
|
||||
print "============ res",res
|
||||
for r in res:
|
||||
full_account.append(r)
|
||||
|
||||
|
@ -368,8 +367,6 @@ class partner_balance(report_sxw.rml_parse):
|
|||
#
|
||||
r['balance'] = float(r['sdebit']) - float(r['scredit'])
|
||||
|
||||
#
|
||||
print "=========r",r
|
||||
completearray.append(r)
|
||||
|
||||
if cleanarray[i]['account_id'] == cleanarray[i-1]['account_id']:
|
||||
|
|
|
@ -125,24 +125,21 @@ class auction_catalog(report_rml):
|
|||
infos.appendChild(lnum)
|
||||
|
||||
dest = os.path.join('/tmp/pdf_catalog/',str(cwid),str(cat['obj_desc'])+'.jpg')
|
||||
if not cat['image']:
|
||||
print "Cat with no Image "
|
||||
|
||||
else:
|
||||
import random
|
||||
limg = doc.createElement('photo_small')
|
||||
file_name = '/tmp/image_%d.jpg' % (random.randint(1,1000),)
|
||||
fp = file(file_name,'wb+')
|
||||
content = base64.decodestring(cat['image'])
|
||||
fp.write(content)
|
||||
fp.close()
|
||||
fp = file(file_name,'r')
|
||||
size = photo_shadow.convert_catalog(fp, '/tmp/test.jpg',110)
|
||||
fp = file('/tmp/test.jpg')
|
||||
file_data = fp.read()
|
||||
test_data = base64.encodestring(file_data)
|
||||
limg.appendChild(doc.createTextNode(test_data))
|
||||
infos.appendChild(limg)
|
||||
if cat['image']:
|
||||
import random
|
||||
limg = doc.createElement('photo_small')
|
||||
file_name = '/tmp/image_%d.jpg' % (random.randint(1,1000),)
|
||||
fp = file(file_name,'wb+')
|
||||
content = base64.decodestring(cat['image'])
|
||||
fp.write(content)
|
||||
fp.close()
|
||||
fp = file(file_name,'r')
|
||||
size = photo_shadow.convert_catalog(fp, '/tmp/test.jpg',110)
|
||||
fp = file('/tmp/test.jpg')
|
||||
file_data = fp.read()
|
||||
test_data = base64.encodestring(file_data)
|
||||
limg.appendChild(doc.createTextNode(test_data))
|
||||
infos.appendChild(limg)
|
||||
|
||||
for key in ('lot_est1','lot_est2'):
|
||||
ref2 = doc.createElement(key)
|
||||
|
|
|
@ -169,13 +169,10 @@ class base_module_merge(wizard.interface):
|
|||
terp_file=os.path.join(fromurl,'__terp__.py')
|
||||
terp_info=eval(tools.file_open(terp_file).read())
|
||||
if os.path.basename(path) in terp_info['init_xml']:
|
||||
print "in init_xml",new_path
|
||||
self.init_xml+=[os.path.basename(new_path)]
|
||||
elif os.path.basename(path) in terp_info['demo_xml']:
|
||||
print "in demo_xml",new_path
|
||||
self.demo_xml+=[os.path.basename(new_path)]
|
||||
elif os.path.basename(path) in terp_info['update_xml']:
|
||||
print "in update_xml",new_path
|
||||
self.update_xml+=[os.path.basename(new_path)]
|
||||
else:
|
||||
file_data=tools.file_open(os.path.join(fromurl, path)).read()
|
||||
|
|
|
@ -101,9 +101,6 @@ def _upload(self, cr, uid, datas, context):
|
|||
], [('module', res['module_filename'],
|
||||
res['module_file'])
|
||||
])
|
||||
print '-'*50
|
||||
print result
|
||||
print '-'*50
|
||||
if result[0] == "1":
|
||||
raise wizard.except_wizard('Error', 'Login failed!')
|
||||
elif result[0] == "0":
|
||||
|
@ -129,20 +126,14 @@ def _upload(self, cr, uid, datas, context):
|
|||
'auto_login': datas['form']['login'],
|
||||
'auto_password': datas['form']['password']
|
||||
}
|
||||
print updata
|
||||
a = urlopen('http://www.openerp.com/mtree_interface.php?module=%s' % (mod.name,))
|
||||
aa = a.read()
|
||||
print '='*40
|
||||
print aa
|
||||
if aa[0]<>'0':
|
||||
updata['link_id']=aa.split('\n')[0]
|
||||
updata['cat_id']=aa.split('\n')[1]
|
||||
updata['option'] = 'mtree'
|
||||
result = post_multipart('www.openerp.com', '/index.php', updata.items(), [])
|
||||
print '.'*50
|
||||
print result
|
||||
return {'update': '\n'.join(log[0]), 'already': '\n'.join(log[1]),
|
||||
'error': '\n'.join(log[2])}
|
||||
return {'update': '\n'.join(log[0]), 'already': '\n'.join(log[1]), 'error': '\n'.join(log[2])}
|
||||
|
||||
class base_module_publish_all(wizard.interface):
|
||||
states = {
|
||||
|
|
|
@ -236,8 +236,6 @@ class base_module_record(osv.osv):
|
|||
return result
|
||||
|
||||
def _create_function(self, cr, uid, doc, model, name, record_id):
|
||||
print 'Create Function', model, name, record_id
|
||||
|
||||
record = doc.createElement('function')
|
||||
record.setAttribute("name", name)
|
||||
record.setAttribute("model", model)
|
||||
|
|
|
@ -166,7 +166,6 @@ def _set_form_value(self, cr, uid, data, context):
|
|||
|
||||
def _set_operator(self, cr, uid, data, context):
|
||||
field = pooler.get_pool(cr.dbname).get('ir.model.fields').browse(cr, uid, data['form']['field_id'])
|
||||
print field.ttype
|
||||
operator = set_value_fields['operator']['selection']
|
||||
while operator:
|
||||
operator.pop(operator.__len__()-1)
|
||||
|
|
|
@ -106,8 +106,8 @@ class email_parser(object):
|
|||
try:
|
||||
data.update(self.partner_get(self._decode_header(msg['From'])))
|
||||
except Exception, e:
|
||||
print e
|
||||
#end try
|
||||
import netsvc
|
||||
netsvc.Logger().notifyChannel('mailgate', netsvc.LOG_ERROR, "%s" % e)
|
||||
|
||||
id = self.rpc('crm.case', 'create', data)
|
||||
attachments = message['attachment']
|
||||
|
@ -122,7 +122,6 @@ class email_parser(object):
|
|||
'res_id': id
|
||||
}
|
||||
self.rpc('ir.attachment', 'create', data_attach)
|
||||
#end for
|
||||
|
||||
return id
|
||||
|
||||
|
|
|
@ -79,7 +79,6 @@ def _sign_in(self, cr, uid, data, context):
|
|||
})
|
||||
try:
|
||||
success = service.execute(cr.dbname, uid, 'hr.employee', 'sign_in', [emp_id])
|
||||
print success
|
||||
except:
|
||||
raise wizard.except_wizard(_('UserError'), _('A sign-in must be right after a sign-out !'))
|
||||
return {'success': success}
|
||||
|
|
|
@ -60,11 +60,8 @@ so_fields = {
|
|||
def _get_empid(self, cr, uid, data, context):
|
||||
service = netsvc.LocalService('object_proxy')
|
||||
emp_id = service.execute(cr.dbname, uid, 'hr.employee', 'search', [('user_id', '=', uid)])
|
||||
print "EMP :::::::::", emp_id
|
||||
if emp_id:
|
||||
print "IF ::::::::"
|
||||
employee = service.execute(cr.dbname, uid, 'hr.employee', 'read', emp_id)[0]
|
||||
print "employee .........", employee
|
||||
return {'name': employee['name'], 'state': employee['state'], 'emp_id': emp_id[0]}
|
||||
return {}
|
||||
|
||||
|
@ -82,7 +79,6 @@ def _sign_in(self, cr, uid, data, context):
|
|||
})
|
||||
try:
|
||||
success = service.execute(cr.dbname, uid, 'hr.employee', 'sign_in', [emp_id])
|
||||
print success
|
||||
except:
|
||||
raise wizard.except_wizard(_('UserError'), _('A sign-in must be right after a sign-out !'))
|
||||
return {'success': success}
|
||||
|
|
|
@ -80,8 +80,6 @@ def _invoice_membership(self, cr, uid, data, context):
|
|||
if line_value['invoice_line_tax_id']:
|
||||
tax_tab = [(6, 0, line_value['invoice_line_tax_id'])]
|
||||
line_value['invoice_line_tax_id'] = tax_tab
|
||||
else:
|
||||
print "no tax"
|
||||
invoice_line_id = invoice_line_obj.create(cr, uid, line_value)
|
||||
invoice_list.append(invoice_id)
|
||||
if line_value['invoice_line_tax_id']:
|
||||
|
|
|
@ -42,10 +42,8 @@ class wiz_timebox_empty(wizard.interface):
|
|||
else:
|
||||
up.append(task.id)
|
||||
if up:
|
||||
print 'UP', up
|
||||
pool.get('project.task').write(cr, uid, up, {'timebox_id':ids[0]})
|
||||
if close:
|
||||
print 'CLOSE', close
|
||||
pool.get('project.task').write(cr, uid, close, {'timebox_id':False})
|
||||
return {}
|
||||
|
||||
|
|
|
@ -79,8 +79,6 @@ def wiki_do_index(self, cr, uid, data, context):
|
|||
result.append(val)
|
||||
current2 = l
|
||||
|
||||
print 'OLD', lst
|
||||
print 'NEW', result
|
||||
for rs in result:
|
||||
wiki_pool.write(cr, uid, [rs[1]], {'section':rs[0]})
|
||||
|
||||
|
|
Loading…
Reference in New Issue