~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/dev/faq.rst

  • Committer: Matt Giuca
  • Date: 2009-12-15 05:13:55 UTC
  • Revision ID: matt.giuca@gmail.com-20091215051355-02086cx0t84wie7l
doc/dev/faq: New Q&A.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
 
146
146
All of the classes are defined in ``ivle/database.py``.
147
147
 
 
148
What does "TypeError: Expected unicode, found <type 'str'>" mean?
 
149
-----------------------------------------------------------------
 
150
 
 
151
All string data going into and out of Storm (i.e., the IVLE database classes)
 
152
must be a Unicode string (type :class:`unicode`), not a regular byte string
 
153
(type :class:`str`). If you have a regular string, convert it to Unicode by
 
154
wrapping it in the :func:`unicode` function. For example::
 
155
 
 
156
    username = unicode(username)
 
157
 
148
158
Subversion
149
159
==========
150
160