-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/28/2014 05:15 AM, Chung WONG wrote:
> *@view_config(route_name="special_view', renderer='json')* *def
> special_view(request)* *        return {'viewA: some_dict, 'viewB':
> some_dict_too}*

Because you are using view classes, you need to create instances of them
to call them.  E.g.::

    @view_config(route_name="combo_platter", renderer="json)
    def combo_platter(request):
        one = ViewOne(request)
        two = ViewTwo(request)
        return {'one': one(), 'two': two()}


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/

iEYEARECAAYFAlMQqGMACgkQ+gerLs4ltQ6SlACfd+tR2FLkzHs+fr22GmMLNxRH
bU4AoLDIvsXnVf3BGRUiFSCKZruYWcmE
=IIDK
-----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.

Reply via email to