# HG changeset patch # User Dimitri Papadopoulos # Date 1391524169 -3600 # Node ID c7fc56eecd1a892b359a776f54b8b5d8d3bc782d # Parent 31f070752462ff1bebeb310c1b0128025164f9b5 English typography Get rid of extra space before `!' and `?' diff -r 31f070752462 -r c7fc56eecd1a devtools/devctl.py --- a/devtools/devctl.py Thu Jan 30 18:04:59 2014 +0100 +++ b/devtools/devctl.py Tue Feb 04 15:29:29 2014 +0100 @@ -619,7 +619,7 @@ % (cubesdir, err)) cubedir = osp.join(cubesdir, cubename) if osp.exists(cubedir): - self.fail("%s already exists !" % cubedir) + self.fail("%s already exists!" % cubedir) skeldir = osp.join(BASEDIR, 'skeleton') default_name = 'cubicweb-%s' % cubename.lower().replace('_', '-') if verbose: diff -r 31f070752462 -r c7fc56eecd1a i18n/de.po --- a/i18n/de.po Thu Jan 30 18:04:59 2014 +0100 +++ b/i18n/de.po Tue Feb 04 15:29:29 2014 +0100 @@ -468,7 +468,7 @@ msgid "Detected problems" msgstr "" -msgid "Do you want to delete the following element(s) ?" +msgid "Do you want to delete the following element(s)?" msgstr "Wollen Sie das/die folgend(n) Element(e) löschen?" msgid "Download schema as OWL" diff -r 31f070752462 -r c7fc56eecd1a i18n/en.po --- a/i18n/en.po Thu Jan 30 18:04:59 2014 +0100 +++ b/i18n/en.po Tue Feb 04 15:29:29 2014 +0100 @@ -446,7 +446,7 @@ msgid "Detected problems" msgstr "" -msgid "Do you want to delete the following element(s) ?" +msgid "Do you want to delete the following element(s)?" msgstr "" msgid "Download schema as OWL" diff -r 31f070752462 -r c7fc56eecd1a i18n/es.po --- a/i18n/es.po Thu Jan 30 18:04:59 2014 +0100 +++ b/i18n/es.po Tue Feb 04 15:29:29 2014 +0100 @@ -468,7 +468,7 @@ msgid "Detected problems" msgstr "Problemas detectados" -msgid "Do you want to delete the following element(s) ?" +msgid "Do you want to delete the following element(s)?" msgstr "Desea eliminar el(los) elemento(s) siguiente(s)" msgid "Download schema as OWL" diff -r 31f070752462 -r c7fc56eecd1a i18n/fr.po --- a/i18n/fr.po Thu Jan 30 18:04:59 2014 +0100 +++ b/i18n/fr.po Tue Feb 04 15:29:29 2014 +0100 @@ -471,7 +471,7 @@ msgid "Detected problems" msgstr "Problèmes détectés" -msgid "Do you want to delete the following element(s) ?" +msgid "Do you want to delete the following element(s)?" msgstr "Voulez-vous supprimer le(s) élément(s) suivant(s) ?" msgid "Download schema as OWL" diff -r 31f070752462 -r c7fc56eecd1a misc/scripts/chpasswd.py --- a/misc/scripts/chpasswd.py Thu Jan 30 18:04:59 2014 +0100 +++ b/misc/scripts/chpasswd.py Tue Feb 04 15:29:29 2014 +0100 @@ -26,15 +26,15 @@ if __args__: login = __args__.pop() else: - login = raw_input("login ? ") + login = raw_input("login? ") rset = rql('Any U WHERE U is CWUser, U login %(login)s', {'login': login}) if len(rset) != 1: sys.exit("user '%s' does not exist!" % login) -pass1 = getpass.getpass(prompt='Enter new password ? ') -pass2 = getpass.getpass(prompt='Confirm ? ') +pass1 = getpass.getpass(prompt='Enter new password? ') +pass2 = getpass.getpass(prompt='Confirm? ') if pass1 != pass2: sys.exit("passwords don't match!") diff -r 31f070752462 -r c7fc56eecd1a misc/scripts/ldapuser2ldapfeed.py --- a/misc/scripts/ldapuser2ldapfeed.py Thu Jan 30 18:04:59 2014 +0100 +++ b/misc/scripts/ldapuser2ldapfeed.py Tue Feb 04 15:29:29 2014 +0100 @@ -90,7 +90,7 @@ source_ent.cw_set(type=u"ldapfeed", parser=u"ldapfeed") -if raw_input('Commit ?') in 'yY': +if raw_input('Commit?') in 'yY': print 'committing' commit() else: diff -r 31f070752462 -r c7fc56eecd1a server/checkintegrity.py --- a/server/checkintegrity.py Thu Jan 30 18:04:59 2014 +0100 +++ b/server/checkintegrity.py Tue Feb 04 15:29:29 2014 +0100 @@ -67,8 +67,8 @@ eids[eid] = False return False elif len(result) > 1: - msg = (' More than one entity with eid %s exists in source !\n' - ' WARNING : Unable to fix this, do it yourself !\n') + msg = (' More than one entity with eid %s exists in source!\n' + ' WARNING : Unable to fix this, do it yourself!\n') sys.stderr.write(msg % eid) eids[eid] = True return True diff -r 31f070752462 -r c7fc56eecd1a server/sources/__init__.py --- a/server/sources/__init__.py Thu Jan 30 18:04:59 2014 +0100 +++ b/server/sources/__init__.py Tue Feb 04 15:29:29 2014 +0100 @@ -344,7 +344,7 @@ """ # XXX find a way to have relation such as state_of in dont cross # relation (eg composite relation without both end type available? - # card 1 relation ? ...) + # card 1 relation? ...) if self.support_relation(rtype): return rtype in self.cross_relations return rtype not in self.dont_cross_relations diff -r 31f070752462 -r c7fc56eecd1a server/sources/native.py --- a/server/sources/native.py Thu Jan 30 18:04:59 2014 +0100 +++ b/server/sources/native.py Tue Feb 04 15:29:29 2014 +0100 @@ -424,7 +424,7 @@ self._eid_creation_cnx.close() self._eid_creation_cnx = None - # XXX deprecates [un]map_attribute ? + # XXX deprecates [un]map_attribute? def map_attribute(self, etype, attr, cb, sourcedb=True): self._rql_sqlgen.attr_map['%s.%s' % (etype, attr)] = (cb, sourcedb) diff -r 31f070752462 -r c7fc56eecd1a server/sources/rql2sql.py --- a/server/sources/rql2sql.py Thu Jan 30 18:04:59 2014 +0100 +++ b/server/sources/rql2sql.py Tue Feb 04 15:29:29 2014 +0100 @@ -688,7 +688,7 @@ Groups and sort are not handled here since they should not be handled at this level (see cubicweb.server.querier) - we should not have errors here ! + we should not have errors here! WARNING: a CubicWebSQLGenerator instance is not thread safe, but generate is protected by a lock diff -r 31f070752462 -r c7fc56eecd1a view.py --- a/view.py Thu Jan 30 18:04:59 2014 +0100 +++ b/view.py Tue Feb 04 15:29:29 2014 +0100 @@ -356,7 +356,7 @@ class StartupView(View): """base class for views which doesn't need a particular result set to be - displayed (so they can always be displayed !) + displayed (so they can always be displayed!) """ __select__ = none_rset() diff -r 31f070752462 -r c7fc56eecd1a web/facet.py --- a/web/facet.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/facet.py Tue Feb 04 15:29:29 2014 +0100 @@ -880,7 +880,7 @@ though linked to a different address entity. There is a great chance your users won't understand that... - That's where this class come in ! It's used to said that you want to filter + That's where this class come in! It's used to said that you want to filter according to the *attribute value* of a relatied entity, not to the entity itself. Now here is the source code for the facet: diff -r 31f070752462 -r c7fc56eecd1a web/views/ajaxcontroller.py --- a/web/views/ajaxcontroller.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/ajaxcontroller.py Tue Feb 04 15:29:29 2014 +0100 @@ -246,7 +246,7 @@ view.render(**kwargs) extresources = self._cw.html_headers.getvalue(skiphead=True) if extresources: - stream.write(u'
\n') # XXX use a widget ? + stream.write(u'
\n') # XXX use a widget? stream.write(extresources) stream.write(u'
\n') if divid == 'pageContent': diff -r 31f070752462 -r c7fc56eecd1a web/views/autoform.py --- a/web/views/autoform.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/autoform.py Tue Feb 04 15:29:29 2014 +0100 @@ -289,7 +289,7 @@ def keep_entity(self, form, entity): if not entity.has_eid(): return True - # are we regenerating form because of a validation error ? + # are we regenerating form because of a validation error? if form.form_previous_values: cdvalues = self._cw.list_form_param(eid_param(self.rtype, self.peid), form.form_previous_values) diff -r 31f070752462 -r c7fc56eecd1a web/views/editforms.py --- a/web/views/editforms.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/editforms.py Tue Feb 04 15:29:29 2014 +0100 @@ -80,7 +80,7 @@ w(u'\n' % _('this action is not reversible!')) # XXX above message should have style of a warning - w(u'

%s

\n' % _('Do you want to delete the following element(s) ?')) + w(u'

%s

\n' % _('Do you want to delete the following element(s)?')) form = self._cw.vreg['forms'].select(self.__regid__, req, rset=self.cw_rset, onsubmit=onsubmit) diff -r 31f070752462 -r c7fc56eecd1a web/views/facets.py --- a/web/views/facets.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/facets.py Tue Feb 04 15:29:29 2014 +0100 @@ -143,7 +143,7 @@ :param vid: ID of the view display in the div :type vid: string - :param paginate: Is the view paginated ? + :param paginate: Is the view paginated? :type paginate: boolean :param cssclass: Additional css classes to put on the form. diff -r 31f070752462 -r c7fc56eecd1a web/views/json.py --- a/web/views/json.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/json.py Tue Feb 04 15:29:29 2014 +0100 @@ -93,7 +93,7 @@ title = _('json-export-view') def call(self): - # XXX mimic w3c recommandations to serialize SPARQL results in json ? + # XXX mimic w3c recommandations to serialize SPARQL results in json? # http://www.w3.org/TR/rdf-sparql-json-res/ self.wdata(self.cw_rset.rows) diff -r 31f070752462 -r c7fc56eecd1a web/views/reledit.py --- a/web/views/reledit.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/reledit.py Tue Feb 04 15:29:29 2014 +0100 @@ -258,7 +258,7 @@ _new_entity.eid = self._cw.varmaker.next() edit_entity = _new_entity # XXX see forms.py ~ 276 and entities.linked_to method - # is there another way ? + # is there another way? self._cw.form['__linkto'] = '%s:%s:%s' % (rschema, entity.eid, neg_role(role)) assert edit_entity return label, edit_entity diff -r 31f070752462 -r c7fc56eecd1a web/views/sessions.py --- a/web/views/sessions.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/sessions.py Tue Feb 04 15:29:29 2014 +0100 @@ -95,7 +95,7 @@ # reopening. Is it actually a problem? if 'last_login_time' in req.vreg.schema: self._update_last_login_time(req) - req.set_message(req._('welcome %s !') % req.user.login) + req.set_message(req._('welcome %s!') % req.user.login) def _update_last_login_time(self, req): # XXX should properly detect missing permission / non writeable source diff -r 31f070752462 -r c7fc56eecd1a web/views/tableview.py --- a/web/views/tableview.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/tableview.py Tue Feb 04 15:29:29 2014 +0100 @@ -1068,7 +1068,7 @@ """Build an url to the current view using the attributes :param navcomp: a NavigationComponent to call an url method on. - :param path: expected to be json here ? + :param path: expected to be json here? :param params: params to give to build_url method this is called by :class:`cubiweb.web.component.NavigationComponent` diff -r 31f070752462 -r c7fc56eecd1a web/views/urlrewrite.py --- a/web/views/urlrewrite.py Thu Jan 30 18:04:59 2014 +0100 +++ b/web/views/urlrewrite.py Tue Feb 04 15:29:29 2014 +0100 @@ -127,7 +127,7 @@ req.form.update(infos) break elif inputurl.match(uri): # it's a regexp - # XXX what about i18n ? (vtitle for instance) + # XXX what about i18n? (vtitle for instance) for param, value in infos.items(): if isinstance(value, basestring): req.form[param] = inputurl.sub(value, uri)