Public bug reported: Binary package hint: schooltool
when inserted a Unicode Resource that its location flag is true, then can't change any section's Location, to produce this error: 1-insert a cource(if there is no one) 2-insert a section for that cource(if theres is no one) 3-insert a location resource - Note that the resource name must be Unicode 4-go back to edit section info, and click to change the location of that section in this page if there is a only one Unicode location resource in the location list, you face with an error this is error page: Server Error An internal server error has occurred. This most likely means that you have found a bug in SchoolBell. Please report it on the issue tracker. Exception UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128) Traceback File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 135, in publish object = request.traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/browser.py", line 500, in traverse ob = super(BrowserRequest, self).traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/http.py", line 451, in traverse ob = super(HTTPRequest, self).traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/base.py", line 289, in traverse subobject = publication.traverseName( File "/usr/lib/python2.4/site-packages/zope/app/publication/publicationtraverse.py", line 62, in traverseName ob2 = adapter.publishTraverse(request, nm) File "/usr/lib/python2.4/site-packages/schooltool/browser/__init__.py", line 57, in publishTraverse return CalendarOwnerTraverser.publishTraverse(self, request, name) File "/usr/lib/python2.4/site-packages/schoolbell/app/browser/cal.py", line 135, in publishTraverse view = queryMultiAdapter((self.context, request), name=name) File "/usr/lib/python2.4/site-packages/zope/component/__init__.py", line 165, in queryMultiAdapter return sitemanager.queryMultiAdapter(objects, interface, name, default) File "/usr/lib/python2.4/site-packages/zope/component/site.py", line 75, in queryMultiAdapter default) File "/usr/lib/python2.4/site-packages/zope/interface/adapter.py", line 475, in queryMultiAdapter return factory(*objects) File "/usr/lib/python2.4/site-packages/zope/app/form/browser/editview.py", line 64, in __init__ self._setUpWidgets() File "/usr/lib/python2.4/site-packages/zope/app/form/browser/editview.py", line 69, in _setUpWidgets names=self.fieldNames) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 224, in setUpEditWidgets ignoreStickyValues, context) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 97, in setUpWidget widget = _createWidget(context, field, viewType, view.request) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 64, in _createWidget field = field.bind(context) File "/usr/lib/python2.4/site-packages/zope/schema/_field.py", line 238, in bind clone.vocabulary = vr.get(object, self.vocabularyName) File "/usr/lib/python2.4/site-packages/zope/app/schema/vocabulary.py", line 42, in get return factory(context) File "/usr/lib/python2.4/site-packages/schooltool/browser/app.py", line 163, in __init__ locations = [SimpleTerm(l, token=l.title) for l in resources.values() \ File "/usr/lib/python2.4/site-packages/zope/schema/vocabulary.py", line 41, in __init__ self.token = str(token) I face with this error, when I use persian characters for the location resource, i didn't check another uncode characters. ** Affects: schooltool (Ubuntu) Importance: Untriaged Status: Unconfirmed ** Description changed: Binary package hint: schooltool when inserted a Unicode Resource that its location flag is true, then can't change any section's Location, to produce this error: 1-insert a cource(if there is no one) 2-insert a section for that cource(if theres is no one) 3-insert a location resource - Note that the resource name must be Unicode 4-go back to edit section info, and click to change the location of that section in this page if there is a only one Unicode location resource in the location list, you face with an error this is error page: Server Error An internal server error has occurred. This most likely means that you have found a bug in SchoolBell. Please report it on the issue tracker. Exception UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128) Traceback File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 135, in publish object = request.traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/browser.py", line 500, in traverse ob = super(BrowserRequest, self).traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/http.py", line 451, in traverse ob = super(HTTPRequest, self).traverse(object) File "/usr/lib/python2.4/site-packages/zope/publisher/base.py", line 289, in traverse subobject = publication.traverseName( File "/usr/lib/python2.4/site-packages/zope/app/publication/publicationtraverse.py", line 62, in traverseName ob2 = adapter.publishTraverse(request, nm) File "/usr/lib/python2.4/site-packages/schooltool/browser/__init__.py", line 57, in publishTraverse return CalendarOwnerTraverser.publishTraverse(self, request, name) File "/usr/lib/python2.4/site-packages/schoolbell/app/browser/cal.py", line 135, in publishTraverse view = queryMultiAdapter((self.context, request), name=name) File "/usr/lib/python2.4/site-packages/zope/component/__init__.py", line 165, in queryMultiAdapter return sitemanager.queryMultiAdapter(objects, interface, name, default) File "/usr/lib/python2.4/site-packages/zope/component/site.py", line 75, in queryMultiAdapter default) File "/usr/lib/python2.4/site-packages/zope/interface/adapter.py", line 475, in queryMultiAdapter return factory(*objects) File "/usr/lib/python2.4/site-packages/zope/app/form/browser/editview.py", line 64, in __init__ self._setUpWidgets() File "/usr/lib/python2.4/site-packages/zope/app/form/browser/editview.py", line 69, in _setUpWidgets names=self.fieldNames) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 224, in setUpEditWidgets ignoreStickyValues, context) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 97, in setUpWidget widget = _createWidget(context, field, viewType, view.request) File "/usr/lib/python2.4/site-packages/zope/app/form/utility.py", line 64, in _createWidget field = field.bind(context) File "/usr/lib/python2.4/site-packages/zope/schema/_field.py", line 238, in bind clone.vocabulary = vr.get(object, self.vocabularyName) File "/usr/lib/python2.4/site-packages/zope/app/schema/vocabulary.py", line 42, in get return factory(context) File "/usr/lib/python2.4/site-packages/schooltool/browser/app.py", line 163, in __init__ locations = [SimpleTerm(l, token=l.title) for l in resources.values() \ File "/usr/lib/python2.4/site-packages/zope/schema/vocabulary.py", line 41, in __init__ self.token = str(token) + + + I face with this error, when I use persian characters for the location resource, i didn't check another uncode characters. ** Tags added: unicode -- Error changing location, in sections https://launchpad.net/bugs/58158 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs