I am confused by what you are doing. From the looks of it, you are doing
more work than you need to do.

>From what you are showing us, you could just do the following in your
project/controllers/root.py and fix the whole problem.

-------
from project.controllers.things import ThingsController

class RootController(BaseController):
    things = ThingsController()
-------

And that's it. No fussing with mappers at all. It will just work.

On Mon, Jul 12, 2010 at 2:39 AM, Guyren G Howe <[email protected]> wrote:

> TG 2.1. I did:
>
> $paster restcontroller thing things
>
> Then in my routing.py, I have:
>
> map = Mapper(…
> map.minimization=False
>
> map.resource('thing', 'things')
>
> Then I have a controllers/things.py, which has this:
>
> …
> class ThingsController(self, format='html')
> …
>
> and so on, all just generated by paster.
>
> I fire this up, go to /things, and I get a 404 error.
>
> Okay, so:
>
> - can anyone tell me from here what I've done wrong?
> - (more importantly) how do I get more information than just "404"? I've
> got all my logging set to debug in my config file. If this was Rails, I'd
> have a detailed log being produced that tells me what controller it was
> going to, what arguments it received, and so on. All my log in TG is giving
> me is the SQL being generated. What am I missing?
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<turbogears%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>


-- 
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
          Yahoo/pedermj2002, MSN/[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to