Gloria wrote:
> I tried this, and I get mismatched tag errors.
>
> >From what you said above, KID seems to be importing in a different
>
> direction. I would think that if I render welcome.kid in my
> controllers.py for a specific class member, KID would pull master.kid
> into the welcome.kid, and then expand master.kid into it. You said
> this:
>
> "The code following the declaration of your body tag essentially takes
> the entire contents of the body tag of any kid pages that build on
> master.kid and places it in your master.kid."
>
> which is a bit confusing. I thought the expansion woudl go the other
> way, FROM master.kid TO some other KID template page. Am I missing
> something?
>
> Also, I am assuming that because of this import between pages, if I am
> pulling a HEAD section from y.css
> HTTP/1.1" 200 114
>
> when I call this member of my root controller:
> clientData = ClientsData()
>
> I invoke it like this:
>
> http://n.n.n.n:1111/clientData/?clientId=787
>
> My images and css are under static, not clientData.static. I need some
> way of telling every page: Get ALL of your basic layout and banner
> images from static/... and get your relative images from
> clientData/static....
>
> Thank you in advance,
>
> Gloria
I am answering my own questions, after much trial and error.
I solved my scope problem by, in my root class of my controllers,
changing this:
clientData = ClientsData()
to this wrapper:
def getClient(self,clientId):
clientData = ClientsData()
return clientData.index(clientId)
Now, the error I was getting in my welcome.kid was due to your example
missing a single quote:
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head">
should be:
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'">
The error message was vague, and didn't help at all, until I removed
all other code.
Gloria
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---