-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/06/2014 03:36 AM, Abdul Wahid wrote:
> I don't know what i am missing and cause of this error.
A couple of things first:
- - Please don't trim tracebacks when reporting a problem: the full
traceback has extra information to help us diagnose it.
- - If your mail client cannot cope with posting indented Python code,
please upload it using a service such as gist.gitub.com, and include
the URL in the mail.
Now to your problem: your code tries to pass 'view' and 'renderer' to
the 'config.add_route()' call, which does not recognize them, and
therefore treats them as unknown route predicates. If you are going to
avoid using the '@view_config' decorator, you must follow the
'config.add_route' call with one or more 'config.add_view' calls[1].
E.g.::
config.add_route('home', '/')
config.add_view('opensilo.views.Main',
route_name='home', renderer='index.mako')
[1]
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/viewconfig.html#mapping-views-using-imperative-config-section
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 [email protected]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlMYiqUACgkQ+gerLs4ltQ6B/ACdEzCGbzeG++MxVYCCANRHd79s
ogwAn2sIOK/sxotu/brOdn3QK36d/z5Q
=OBCf
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.