Commit 6e66cbd7 authored by Dimitri Papadopoulos's avatar Dimitri Papadopoulos
Browse files

English typography

Get rid of extra space before `!' and `?'
parent 31f070752462
......@@ -619,7 +619,7 @@ layout, and a full featured cube with "full" layout.',
% (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:
......
......@@ -468,7 +468,7 @@ msgstr ""
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"
......
......@@ -446,7 +446,7 @@ msgstr ""
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"
......
......@@ -468,7 +468,7 @@ msgstr ""
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"
......
......@@ -471,7 +471,7 @@ msgstr "Entité %(etype)s supprimée : %(entity)s"
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"
......
......@@ -26,15 +26,15 @@ from cubicweb.server.utils import crypt_password
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!")
......
......@@ -90,7 +90,7 @@ source_ent = rql('CWSource S WHERE S eid %(s)s', {'s': source.eid}).get_entity(0
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:
......
......@@ -67,8 +67,8 @@ def has_eid(session, sqlcursor, eid, eids):
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
......
......@@ -344,7 +344,7 @@ class AbstractSource(object):
"""
# 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
......
......@@ -424,7 +424,7 @@ class NativeSQLSource(SQLAdapterMixIn, AbstractSource):
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)
......
......@@ -688,7 +688,7 @@ class SQLGenerator(object):
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
......
......@@ -356,7 +356,7 @@ class EntityView(View):
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()
......
......@@ -880,7 +880,7 @@ class RelationAttributeFacet(RelationFacet):
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:
......
......@@ -246,7 +246,7 @@ class AjaxFunction(AppObject):
view.render(**kwargs)
extresources = self._cw.html_headers.getvalue(skiphead=True)
if extresources:
stream.write(u'<div class="ajaxHtmlHead">\n') # XXX use a widget ?
stream.write(u'<div class="ajaxHtmlHead">\n') # XXX use a widget?
stream.write(extresources)
stream.write(u'</div>\n')
if divid == 'pageContent':
......
......@@ -289,7 +289,7 @@ class InlineEntityEditionFormView(f.FormViewMixIn, EntityView):
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)
......
......@@ -80,7 +80,7 @@ class DeleteConfFormView(FormViewMixIn, EntityView):
w(u'<script type="text/javascript">updateMessage(\'%s\');</script>\n'
% _('this action is not reversible!'))
# XXX above message should have style of a warning
w(u'<h4>%s</h4>\n' % _('Do you want to delete the following element(s) ?'))
w(u'<h4>%s</h4>\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)
......
......@@ -143,7 +143,7 @@ class FacetFilterMixIn(object):
: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.
......
......@@ -93,7 +93,7 @@ class JsonRsetView(JsonMixIn, AnyRsetView):
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)
......
......@@ -258,7 +258,7 @@ class AutoClickAndEditFormView(EntityView):
_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
......
......@@ -95,7 +95,7 @@ class InMemoryRepositorySessionManager(AbstractSessionManager):
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment