# HG changeset patch # User RĂ©mi Cardona # Date 1397470020 -7200 # Node ID 46c8d8701240416088ce38b0ea18e5bd8bf89067 # Parent da7d341cca76784dfda36f8b10602144f4b0597f an unicode string -> a unicode string diff -r da7d341cca76 -r 46c8d8701240 cwvreg.py --- a/cwvreg.py Mon Apr 14 11:54:33 2014 +0200 +++ b/cwvreg.py Mon Apr 14 12:07:00 2014 +0200 @@ -753,7 +753,7 @@ return self.property_info(key)['default'] def typed_value(self, key, value): - """value is an unicode string, return it correctly typed. Let potential + """value is a unicode string, return it correctly typed. Let potential type error propagates. """ pdef = self.property_info(key) diff -r da7d341cca76 -r 46c8d8701240 dbapi.py --- a/dbapi.py Mon Apr 14 11:54:33 2014 +0200 +++ b/dbapi.py Mon Apr 14 12:07:00 2014 +0200 @@ -471,7 +471,7 @@ """execute a rql query, return resulting rows and their description in a :class:`~cubicweb.rset.ResultSet` object - * `rql` should be an Unicode string or a plain ASCII string, containing + * `rql` should be a Unicode string or a plain ASCII string, containing the rql query * `args` the optional args dictionary associated to the query, with key diff -r da7d341cca76 -r 46c8d8701240 server/querier.py --- a/server/querier.py Mon Apr 14 11:54:33 2014 +0200 +++ b/server/querier.py Mon Apr 14 12:07:00 2014 +0200 @@ -554,7 +554,7 @@ """execute a rql query, return resulting rows and their description in a `ResultSet` object - * `rql` should be an Unicode string or a plain ASCII string + * `rql` should be a Unicode string or a plain ASCII string * `args` the optional parameters dictionary associated to the query * `build_descr` is a boolean flag indicating if the description should be built on select queries (if false, the description will be en empty diff -r da7d341cca76 -r 46c8d8701240 server/repository.py --- a/server/repository.py Mon Apr 14 11:54:33 2014 +0200 +++ b/server/repository.py Mon Apr 14 12:07:00 2014 +0200 @@ -781,7 +781,7 @@ txid=None): """execute a RQL query - * rqlstring should be an unicode string or a plain ascii string + * rqlstring should be a unicode string or a plain ascii string * args the optional parameters used in the query * build_descr is a flag indicating if the description should be built on select queries diff -r da7d341cca76 -r 46c8d8701240 server/sources/extlite.py --- a/server/sources/extlite.py Mon Apr 14 11:54:33 2014 +0200 +++ b/server/sources/extlite.py Mon Apr 14 12:07:00 2014 +0200 @@ -288,7 +288,7 @@ print 'exec', query, args cursor = session.cnxset[self.uri] try: - # str(query) to avoid error if it's an unicode string + # str(query) to avoid error if it's a unicode string cursor.execute(str(query), args) except Exception as ex: self.critical("sql: %r\n args: %s\ndbms message: %r", diff -r da7d341cca76 -r 46c8d8701240 server/sources/native.py --- a/server/sources/native.py Mon Apr 14 11:54:33 2014 +0200 +++ b/server/sources/native.py Mon Apr 14 12:07:00 2014 +0200 @@ -739,7 +739,7 @@ # instance print 'exec', query, args, getattr(cnx, '_cnx', cnx) try: - # str(query) to avoid error if it's an unicode string + # str(query) to avoid error if it's a unicode string cursor.execute(str(query), args) except Exception as ex: if self.repo.config.mode != 'test': @@ -779,7 +779,7 @@ print 'execmany', query, 'with', len(args), 'arguments' cursor = session.cnxset[self.uri] try: - # str(query) to avoid error if it's an unicode string + # str(query) to avoid error if it's a unicode string cursor.executemany(str(query), args) except Exception as ex: if self.repo.config.mode != 'test': diff -r da7d341cca76 -r 46c8d8701240 web/formfields.py --- a/web/formfields.py Mon Apr 14 11:54:33 2014 +0200 +++ b/web/formfields.py Mon Apr 14 12:07:00 2014 +0200 @@ -382,7 +382,7 @@ called by widgets which requires a vocabulary. It should return a list of tuple (label, value), where value - *must be an unicode string*, not a typed value. + *must be a unicode string*, not a typed value. """ assert self.choices is not None if callable(self.choices): diff -r da7d341cca76 -r 46c8d8701240 web/formwidgets.py --- a/web/formwidgets.py Mon Apr 14 11:54:33 2014 +0200 +++ b/web/formwidgets.py Mon Apr 14 12:07:00 2014 +0200 @@ -310,7 +310,7 @@ # basic html widgets ########################################################### class TextInput(Input): - """Simple , will return an unicode string.""" + """Simple , will return a unicode string.""" type = 'text' @@ -373,7 +373,7 @@ class HiddenInput(Input): - """Simple for hidden value, will return an unicode + """Simple for hidden value, will return a unicode string. """ type = 'hidden' @@ -382,7 +382,7 @@ class ButtonInput(Input): - """Simple , will return an unicode string. + """Simple , will return a unicode string. If you want a global form button, look at the :class:`Button`, :class:`SubmitButton`, :class:`ResetButton` and :class:`ImgButton` below. @@ -391,7 +391,7 @@ class TextArea(FieldWidget): - """Simple