If I want to import action classes from another file, as opposed to having them in code.py, where should render (for TTwain) be defined? I think I'm running into trouble because I have the action files in a subdirectory like so:
code.py templates/ module/actions1.py module/actions2.py I (have to?) have the render defined in each of the action files, so should the render path be ../templates, or ./templates because it's being actually started from code.py? I'm getting AttributeErrors and can't find the templates. I can't figure out enough about how it works to try to inspect it while it's running. My understanding of how paths work throughout is somewhat poor. Is there a better way to do this, say attach render to something in code.py so it's propagated through anything that can import web? Or is there just a better way to define actions outside code.py? I'm definitely open to suggestions. -- Also, possibly unrelated, I think I'm having trouble referring to render.dir1.foo from inside a template in render.dir2.bar. It seems like it's looking for render.dir2.dir1.foo? Or maybe it's just related to my path trouble? (Although I had my paths working with a simpler setup and it seemed like I couldn't access absolute template path names.) Is this a TTwain bug? If this isn't put together coherently enough, I can try some more. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
