ok.  that works great.

Now for my next question -

I'm trying to mimic the 'subcontrollers' like in FastTrack, to clean up
my namespace for modules and templates

controllers.py
        from subcontrollers.registration import RegistrationController
        class Root(controllers.RootController):
                registration = RegistrationController()



subcontrollers/registration.py

        import turbogears as tg
        class RegistrationController(tg.controllers.Controller):
                # the registration will submit to 'registration__process'
                registration__form = Form__Register(action="process")

                @tg.expose(template="myapp.templates.registration.form")
                def index(self, *args, **kw):
                        options = {}
                        value = {}
                        return dict(
                                form = self.registration__form,
                                value = value,
                                options = options,
                        )

however, i keep getting this error:
Page handler: <bound method RegistrationController.process of
<myapp.subcontrollers.registration.RegistrationController object at
0x10b8a90>>
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
line 106, in _run
    self.main()
===snip
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.1-py2.4.egg/kid/util.py",
line 25, in open_resource
    (scheme, rest) = splittype(uri)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/urllib.py",
line 900, in splittype
    match = _typeprog.match(url)
TypeError: expected string or buffer

i've been screwing with this for the past hour, no luck getting past
it.

i know for sure that the template is being read ( if i rename/move it,
it throws a different exception )

can anyone offer some insight?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to