Hello!

After upgrading the framework from 2.9.5 to 2.18.5 a code like this
auth.has_membership(role='Супервизор') or 
auth.has_membership(auth.id_group('Супервизор'))
leads to UnicodeDecodeError exception.

Even db.auth_group.role == 'Супервизор' in /app/appadmin/select/db throws 
an exception 
(but with db.apt_auth_group.id>0 all records are visible)

    Traceback (most recent call last):
  File "/var/www/web2py/applications/app/controllers/appadmin.py", line 245, in 
select
    nrows = db(query, ignore_common_filters=True).count()
  File "/var/www/web2py/gluon/packages/dal/pydal/objects.py", line 2385, in 
count
    return db._adapter.count(self.query, distinct)
  File "/var/www/web2py/gluon/packages/dal/pydal/adapters/base.py", line 791, 
in count
    self.execute(self._count(query, distinct))
  File "/var/www/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 
67, in wrap
    return f(*args, **kwargs)
  File "/var/www/web2py/gluon/packages/dal/pydal/adapters/base.py", line 413, 
in execute
    rv = self.cursor.execute(command, *args[1:], **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 72: 
ordinal not in range(128)

Any suggestions?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2f1f1ac2-30bf-4d69-96c4-cd81c0ef80a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to