Merge commit 'origin/master' into mdv-gpl3
authorP. Christeas <p_christ@hol.gr>
Tue, 4 Nov 2008 20:12:38 +0000 (22:12 +0200)
committerP. Christeas <p_christ@hol.gr>
Tue, 4 Nov 2008 20:12:38 +0000 (22:12 +0200)
Conflicts:
bin/tools/convert.py

bzr revid: p_christ@hol.gr-20081025224421-g367ati5b2eeplw6
bzr revid: p_christ@hol.gr-20081104201238-oy0vgsunt2jxgu2p

1  2 
bin/addons/base/ir/ir.xml
bin/addons/base/security/base_security.xml
bin/netsvc.py
bin/openerp-server.py
bin/osv/orm.py
bin/report/printscreen/ps_list.py
bin/ssl/SecureXMLRPCServer.py
bin/tools/convert.py
bin/tools/translate.py

Simple merge
diff --cc bin/netsvc.py
Simple merge
diff --cc bin/osv/orm.py
Simple merge
Simple merge
Simple merge
@@@ -105,13 -102,8 +102,13 @@@ def _eval_xml(self,node, pool, cr, uid
                      class pytzclass(object):
                          all_timezones=[]
                      pytz=pytzclass()
-                 idref['pytz'] = pytz
+                 idref2['pytz'] = pytz
 -                return eval(a_eval, idref2)
 +              try:
-                       return eval(a_eval, idref)
++                        return eval(a_eval, idref2)
 +              except:
 +                      logger = netsvc.Logger()
 +                      logger.notifyChannel("init", netsvc.LOG_WARNING, 'could eval(%s) for %s in %s, please get back and fix it!' % (a_eval,node.getAttribute('name'),context))
 +                      return ""
              if t == 'xml':
                  def _process(s, idref):
                      m = re.findall('[^%]%\((.*?)\)[ds]', s)
@@@ -119,9 -108,10 +112,12 @@@ class TinyPoFile(object)
              while line.startswith('#'):
                  if line.startswith('#:'):
                      tmp_tnrs.append( line[2:].strip().split(':') )
 +              elif line.startswith('#,') and (line[2:].strip() == 'fuzzy'):
 +                      fuzzy = True
                  line = self.lines.pop(0).strip()
+             while not line:
+                 # allow empty lines between comments and msgid
+                 line = self.lines.pop(0).strip()
              if not line.startswith('msgid'):
                  raise Exception("malformed file: bad line: %s" % line)
              source = unquote(line[6:])