server/test/data/sources_multi
author Julien Jehannet <Julien Jehannet <julien.jehannet@logilab.fr>>
Tue, 02 Mar 2010 21:48:36 +0100
branchstable
changeset 4783 6dc34d4cf892
parent 1840 f4b5c15d1147
child 5761 02bccbc4ff1c
permissions -rw-r--r--
[F] views: fix 2 unicode errors 1. You can now use valid unicode strings in ValidationError exception. Previously, if 'err' contains unicode, UnicodeDecodeError was raised by format_errors() >>> templstr = '<li>%s</li>\n' >>> e = ValidationError(None, {None: u'oué, une exception en unicode!'}) >>> templstr % e '<li>None (None): ou\xc3\xa9, une exception en unicode!</li>\n' >>> templstr = u'<li>%s</li>\n' >>> templstr % e u'<li>None (None): ou\xe9, une exception en unicode!</li>\n' 2. The message of an Exception can contains unicode. But it now properly managed by “informal” string representation. We can easily fix the problem by using the Exception.message attribute that still contains the original message. >>> a = AssertionError(u'séfdsdf') >>> a.message u's\xe9fdsdf' >>> str(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128) >>> a = ValueError(u'fsdfsdéfsdfs') >>> str(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 6: ordinal not in range(128) >>> a ValueError(u'fsdfsd\xe9fsdfs',) >>> unicode(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 6: ordinal not in range(128) >>> a.message u'fsdfsd\xe9fsdfs'
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
364
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
[system]
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
db-driver   = sqlite
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
db-host     = 
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
adapter     = native
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
db-name     = tmpdb
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
db-encoding = UTF-8
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     8
db-user     = admin
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     9
db-password = gingkow
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    10
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    11
[extern]
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    12
adapter = pyrorql
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    13
pyro-ns-id = extern
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    14
cubicweb-user = admin
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    15
cubicweb-password = gingkow
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    16
mapping-file = extern_mapping.py
1840
f4b5c15d1147 test and fix #342997: local eid used for absolute_url of external entities
sylvain.thenault@logilab.fr
parents: 519
diff changeset
    17
base-url=http://extern.org/
364
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    18
519
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    19
[extern-multi]
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    20
adapter = pyrorql
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    21
pyro-ns-id = extern-multi
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    22
cubicweb-user = admin
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    23
cubicweb-password = gingkow
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    24
mapping-file = extern_mapping.py
06390418cd9a pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)
sylvain.thenault@logilab.fr
parents: 364
diff changeset
    25
364
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    26
[admin]
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    27
login = admin
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    28
password = gingkow