← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 856192] [NEW] [trunk] Docstrings Byte Literal contains non-ascii characters

 

Public bug reported:

Hello,

In the docstring methods, the following line is often present :
  @param uid: the current user’s ID for security checks

The char ’ is not an ascii char and the docstrings are not declared as
unicode (u"""docstring content""") [1]

With the command below, 254 lines match.
grep -hcr "the current user’s ID for security checks" * | awk '{ count += $0} END {print count}'

I think we should do some sed on all addons to correct that (and server as there is the same issue) like :
grep -hlr "the current user’s ID for security checks" * | xargs sed -i "s/the current user’s ID for security checks/the current user's ID for security checks/g"


Some others with the same problem:
grep -hcr "’" * | awk '{ count += $0} END {print count}' (result : 688)
@param ids: List of open wiki page’s IDs
@param ids: List of calendar event import’s IDs
@param data_id: Get Data’s ID or False
@param ids: List of auction lots enable’s IDs.


Thanks
Guewen

[1] http://www.python.org/dev/peps/pep-0257/

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/856192

Title:
  [trunk] Docstrings Byte Literal contains non-ascii characters

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  In the docstring methods, the following line is often present :
    @param uid: the current user’s ID for security checks

  The char ’ is not an ascii char and the docstrings are not declared as
  unicode (u"""docstring content""") [1]

  With the command below, 254 lines match.
  grep -hcr "the current user’s ID for security checks" * | awk '{ count += $0} END {print count}'

  I think we should do some sed on all addons to correct that (and server as there is the same issue) like :
  grep -hlr "the current user’s ID for security checks" * | xargs sed -i "s/the current user’s ID for security checks/the current user's ID for security checks/g"

  
  Some others with the same problem:
  grep -hcr "’" * | awk '{ count += $0} END {print count}' (result : 688)
  @param ids: List of open wiki page’s IDs
  @param ids: List of calendar event import’s IDs
  @param data_id: Get Data’s ID or False
  @param ids: List of auction lots enable’s IDs.

  
  Thanks
  Guewen

  [1] http://www.python.org/dev/peps/pep-0257/

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/856192/+subscriptions


Follow ups

References