Change to Prewikka
China <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to change Prewikka code, inserting in SensorListing.tmpl a new
feature only for Snort sensor.
The code that doesn't work is the follow (that with ">>>" is mine):
...
<span id="${entry}_${node.node_name}_${analyzer.analyzerid}"
class="popup_menu">
>>> #if $analyzer["model"].find('Snort') == -1
>>> - <a href=" www.google.it">$_("Pippo pluto
paperino")</a><br />
>>> #end if
- <a href="$analyzer.alert_listing">$_("Alert listing")</a><br />
...
The error that arise is the follow:
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] Traceback (most recent call
last):, referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in
HandlerDispatch\n default=default_handler, arg=req, silent= hlist.silent),
referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1229, in
_process_target\n result = _execute_target(config, req, object, arg),
referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1128, in
_execute_target\n result = object(arg), referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/prewikka/ModPythonHandler.py", line 83, in
handler\n core.process(request), referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/prewikka/Core.py", line 351, in
process\n template = load_template(template_name, dataset), referer:
http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/prewikka/Core.py", line 86, in
load_template\n template = getattr(__import__(" prewikka.templates." +
name, globals(), locals(), [ name ]), name)(filtersLib=CheetahFilters),
referer: http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] File
"/usr/lib/python2.4/site-packages/prewikka/templates/SensorListing.py", line
26, in ?\n from python.string import find, referer:
http://tucatuca/prewikka
[Tue Jun 05 14:24:12 2007] [error] [client XXXX] ImportError: No module
named python.string, referer: http://tucatuca/prewikka
I'm new to Python e to Cheetah, I've read something in the Python Manual and
in Cheetah Manual.
--
Davide Belloni
_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel