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

sorry for sharing all my trials. it doesn't work yet.

the problem happens only when the page described below is the first AND
the second page that load on this site after tg site server starts.

ideas are welcome :)

alex

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

iQCVAwUBR2PLKNpwN1sq38njAQIT7gP9HBFJ39FhBHm7uCyGVaYp+AyN66DpKsws
ESnygTKM6wRqtsSwgkLCfm2hRzoKn7UfUY6R2LJhWr/83Abz9tXl5GLaPkNmKfhR
cyb0bd85eIGTJCxcZTUyZkJ9W294gFPjDeM9Li71nUnBvRmNzArN+puFgJ3gj9Vq
tTIuUQ2W1W4=
=MPrj
-----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