# HG changeset patch # User Nicolas Chauvat # Date 1242946338 -7200 # Node ID 8dd4bb69c73dbcdc4aa672d6f214cdb0d8a5f904 # Parent 361774742f3e8f0f86c98d95bda9d8dfd86e8827 [tests] fix test after eproperties got renamed to cwproperties diff -r 361774742f3e -r 8dd4bb69c73d doc/book/en/annexes/faq.rst --- a/doc/book/en/annexes/faq.rst Fri May 22 00:46:41 2009 +0200 +++ b/doc/book/en/annexes/faq.rst Fri May 22 00:52:18 2009 +0200 @@ -289,7 +289,7 @@ If your schema has an attribute of type Date or Datetime, you might want to format it. First, you should define your preferred format using - the site configuration panel ``http://appurl/view?vid=systemepropertiesform`` + the site configuration panel ``http://appurl/view?vid=systempropertiesform`` and then set ``ui.date`` and/or ``ui.datetime``. Then in the view code, use:: diff -r 361774742f3e -r 8dd4bb69c73d web/test/unittest_urlrewrite.py --- a/web/test/unittest_urlrewrite.py Fri May 22 00:46:41 2009 +0200 +++ b/web/test/unittest_urlrewrite.py Fri May 22 00:52:18 2009 +0200 @@ -23,8 +23,8 @@ ('foo' , dict(rql='Foo F')), ('/index' , dict(vid='index2')), ('/schema', {'vid': 'schema'}), - ('/myprefs', dict(vid='epropertiesform')), - ('/siteconfig', dict(vid='systemepropertiesform')), + ('/myprefs', dict(vid='propertiesform')), + ('/siteconfig', dict(vid='systempropertiesform')), ('/manage', dict(vid='manage')), ('/notfound', {'vid': '404'}), ('/error', {'vid': 'error'}), diff -r 361774742f3e -r 8dd4bb69c73d web/test/unittest_viewselector.py --- a/web/test/unittest_viewselector.py Fri May 22 00:46:41 2009 +0200 +++ b/web/test/unittest_viewselector.py Fri May 22 00:52:18 2009 +0200 @@ -66,13 +66,13 @@ self.assertListEqual(self.pviews(req, None), [('changelog', wdoc.ChangeLogView), ('debug', debug.DebugView), - ('epropertiesform', cwproperties.EPropertiesForm), ('index', startup.IndexView), ('info', management.ProcessInformationView), ('manage', startup.ManageView), ('owl', owl.OWLView), + ('propertiesform', cwproperties.CWPropertiesForm), ('schema', startup.SchemaView), - ('systemepropertiesform', cwproperties.SystemEPropertiesForm)]) + ('systempropertiesform', cwproperties.SystemCWPropertiesForm)]) def test_possible_views_noresult(self): rset, req = self.env.get_rset_and_req('Any X WHERE X eid 999999')