Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Bug when try to use two different master.kid files in tg project
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric Hawthorne  
View profile  
 More options Sep 2 2006, 1:57 pm
From: "Eric Hawthorne" <poeticsoftw...@gmail.com>
Date: Sat, 2 Sep 2006 10:57:49 -0700
Local: Sat, Sep 2 2006 1:57 pm
Subject: Bug when try to use two different master.kid files in tg project
In order to have two distinct styles, for small mobile browser screens,
and for regular screens, I have two variants of a turbogears kid template.
I have myPage.kid and myPageSmall.kid, and I have them extend
a master.kid (which extends sitetemplate) and a masterSmall.kid (which
also extends sitetemplate.kid).

The master.kid variants are currently identical with the exception of
referring to a different css file.

Upon trying to load the second of these (myPageSmall) into a web
browser, I get the
following error in the framework code. Anyone know what's up?

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 105, in _run
    self.main()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in ballotSmall
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 273, in expose
    output = database.run_with_transaction(
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/database.py",
line 221, in run_with_transaction
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 290, in <lambda>
    mapping, fragment, *args, **kw)))
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 324, in _execute_func
    return _process_output(output, template, format, content_type,
mapping, fragment)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/controllers.py",
line 65, in _process_output
    fragment=fragment)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboGears-0.9a6-py2.4.egg/turbogears/view/base.py",
line 131, in render
    return engine.render(**kw)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py",
line 140, in render
    tclass = self.load_template(template)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa ges/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py",
line 84, in load_template
    if ct[module] != mtime:
KeyError: 'kid.util.template_0xBB936AFEL'


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »