Sekeletonz version: SVN (2006-06-13).
I don't know if it's a bug or if I made a misconfiguration.
When I active cache in general_config.py and create a
new page, I get a:
[output]
Serving /siteedit/getAllMenus
Serving /siteedit/ol%26eacute%3B/
Traceback (most recent call last):
File
"/home/queen/skeletonz-cvs/skeletonz/trunk/amilib/amiweb/_cpwsgiserver.py",
line 202, in run
File
"/home/queen/skeletonz-cvs/skeletonz/trunk/skeletonz/mylib/sk_middleware.py",
line 94, in __call__
File
"/home/queen/skeletonz-cvs/skeletonz/trunk/amilib/amiweb/paste/session.py",
line 52, in __call__
File
"/home/queen/skeletonz-cvs/skeletonz/trunk/amilib/amiweb/amiweb.py",
line 218, in __call__
File
"/home/queen/skeletonz-cvs/skeletonz/trunk/skeletonz/mylib/url_mapper.py",
line 34, in mapToName
File
"/home/queen/skeletonz_svn/skeletonz/trunk/skeletonz/Site.py",
line 285, in index
content = sections.fillIn(current_info, content)
UnboundLocalError: local variable 'current_info'
referenced before assignment
[/output]
I fixed editing Site.py and just indenting the line
where *I think* is the correct place:
[code]
if AmiCache.isCacheUp2Date(page_id, is_edit=True):
content = AmiCache.getValue(page_id, is_edit=True)
else:
current_info = getCurrentInfo(self.template,
page_id, edit_mode)
content = renderView(current_info, "site_edit")
AmiCache.updateCache(page_id, content, is_edit=True)
# XXX
#Append dynamic sections to this
content = sections.fillIn(current_info, content)
# XXX
return content
index.exposed = True
[/code]
I repeat: I don't know if it's a bug. Maybe I'm doing a
bad use of cache or... well... maybe I broke something
making support for non-ascii characters with a _very
dirty and moron hack(TM)_ that "reencode" non-ascii
characters to its html representation (i.e. «Á» ->
«Á») before store in DB and reversing after
retrieving to show in navigator. If you are interesting
, I can provide a patch.
Feel free to contact me by email. You're doing a great
job with this CMS.
By the way. The site
http://www.daimi.au.dk/~amix/skeletonz/ is down.
P.S.: Sorry for my poor english.
Logged In: YES
user_id=820285
Ouch. Formatting ignores indentation. The change consists of
put the line "content = ..." in the "else" section rather
than after the "if-else".