~credativ/openobject-server/trunk-csv-import-domain

« back to all changes in this revision

Viewing changes to openerp/http.py

  • Committer: Christophe Simonis
  • Date: 2014-04-22 14:46:51 UTC
  • mfrom: (5189.1.7 saas-4)
  • Revision ID: chs@openerp.com-20140422144651-840zze7p5549k88s
[MERGE] forward port of branch saas-4 up to revid 5196 chs@openerp.com-20140422123533-b6lcm76ydf8vpw9u

Show diffs side-by-side

added added

removed removed

Lines of Context:
600
600
 
601
601
        # flag old-style methods with req as first argument
602
602
        for k, v in attrs.items():
603
 
            if inspect.isfunction(v):
604
 
                spec = inspect.getargspec(v)
 
603
            if inspect.isfunction(v) and hasattr(v, 'original_func'):
 
604
                spec = inspect.getargspec(v.original_func)
605
605
                first_arg = spec.args[1] if len(spec.args) >= 2 else None
606
606
                if first_arg in ["req", "request"]:
607
607
                    v._first_arg_is_req = True