-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

not enough. it seems i don't fully understand the work behind the
curtains yet :(

alex bodnaru wrote:
> 
> btw: the crash happens only when this is the first page loaded by the site.
> 
> i'll try to manually import sitetemplate.
> 
> alex bodnaru wrote:
>> hi all,
> 
>> i wish to manually load a template layout, since it's not in the subtree
>> of the running site.
> 
>> i do as follows:
> 
>> <?python
>> from turbokid import kidsupport
>> ks = kidsupport.KidSupport()
>> cls = ks.load_template('tglib.identity.templates.login')
>> ?>
>> <html xmlns="http://www.w3.org/1999/xhtml";
>> xmlns:py="http://purl.org/kid/ns#";
>>     py:layout="cls"
> 
>> however it seems to load correctly for the first time, the loaded module
>> does not well integrate with the system, hence when i reload the same
>> page i get an error:
> 
>> 500 Internal error
> 
>> The server encountered an unexpected condition which prevented it from
>> fulfilling the request.
> 
>> Page handler: <bound method Root.login of
>> <resheteva.controllers.root.Root object at 0x8aa808c>>
>> Traceback (most recent call last):
>>   File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py",
>> line 105, in _run
>>     self.main()
>>   File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py",
>> line 254, in main
>>     body = page_handler(*virtual_path, **self.params)
>>   File "<string>", line 3, in login
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/controllers.py",
>> line 342, in expose
>>     output = database.run_with_transaction(
>>   File "<string>", line 5, in run_with_transaction
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/database.py",
>> line 406, in sa_rwt
>>     retval = func(*args, **kw)
>>   File "<string>", line 5, in _expose
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/controllers.py",
>> line 359, in <lambda>
>>     mapping, fragment, args, kw)))
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/controllers.py",
>> line 399, in _execute_func
>>     return _process_output(output, template, format, content_type,
>> mapping, fragment)
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/controllers.py",
>> line 86, in _process_output
>>     fragment=fragment)
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/view/base.py",
>> line 129, in render
>>     return engine.render(**kw)
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboKid-1.0.4-py2.4.egg/turbokid/kidsupport.py",
>> line 182, in render
>>     tclass = self.load_template(template)
>>   File
>> "/usr/local/lib/python2.4/site-packages/TurboKid-1.0.4-py2.4.egg/turbokid/kidsupport.py",
>> line 125, in load_template
>>     if mtime > ct[module]:
>> KeyError: 'kid.util.template_91af9db0'
> 
>> please point me where i'm wrong :)
> 
>> alex
> 
> 
> - 
> 

- 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBR2PJotpwN1sq38njAQLQdQQAugyoDHFm/3iDBgBe/5zO1Ic+oBiyApf0
/Up92v4p9gbN4uIDMbNLzjgIFEk89k7G4IHRPC1cyV9avy8vjLHXcXBwHLfr7vLv
OnblAA8yPQSIpfj2gwlDQUBYciPYmsBaeO2kOxSjK5ypBNfEZ+xIPUTv9Y+azy5Q
HCPPvWsTHzc=
=DDMU
-----END PGP SIGNATURE-----

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