Hi all,

I am pretty new to KID but I am already using it extensively in one of
my projects.
But there is an error that is really wnnoying me and that looks really
wired. After searching in Google and in the archives I could not find
any answer, so here I go.

I am using cherrypy together with KID. I have an application that uses
kid in lot of places without problems, but there is one script that is
driving me crazy. I have a myFile.py script and a myFile.kid template.
If I make a change to myFile.py and then to myFile.kid I can see the
page without problems, great. But if I make a change to myFile.py and
do not touch myFile.kid I always get this error:

---------------
...
 File "/Users/javi/workspace/PyWrapper/webapp/page.py", line 84, in render
    tmpl = kid.Template(name=tmpl_name, baseurl=baseurl, title=title,
ServiceTitle=ServiceTitle, trail=trail, navlist=navlist,
menu_items=menu_items, curr_menu=curr_menu,
submenu_items=submenu_items, curr_submenu=curr_submenu, logout=logout,
version= biocase.pywrapper.__version__, **kwargs)
  File 
"/usr/local/python2.4/lib/python2.4/site-packages/kid-0.9.3-py2.4.egg/kid/__init__.py",
line 164, in Template
    mod.Template.module = mod
AttributeError: 'module' object has no attribute 'Template'
---------------

The curious thing is that if I open the myFile.kif file and just save
it again (without any change but with a write) cherrypy gets restarted
and the page starts working!

So the problem is that right now every time I change the myFile.py
file I have to go to myFile.kid and resave it or I would get the
error.

I have other scripts with other templates and they are working fine,
and I dont find any real difference. I have deleted almost all the
myFile.kid file to only really basic thing and I still get the
error...

Any idea of what can be going on?

Thanks in advance.

Javier.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to