Jared wrote:

Are tmda-cgi questions OK on this list? I just installed tmda-cgi. It's working great for the most part. I have two issues with it.

This is the only list. And the right place :)


1) The first, and most important problem I have is when trying to read the Local Config file.

See below.


2) The second is when I click "Test FIlters."

Also below.


3) Not a problem, but are there any other pre-made themes out there?

Not that I know of, except my "new" theme that will be part of 0.13 when it comes out (soon, I promise!).


===
Problem #1: Trying to read the Local Config file.
It should be at ~jared/.tmda/config. When I click the link in tmda-cgi, I get the following text:


A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/opt/tmda-cgi-0.12/tmda-cgi.py

  172   elif Cmd == "localconfig":
  173     import LocalConfig
  174     Call(LocalConfig)
  175   elif Cmd == "pending":
  176     import PendList

Call = <function Call at 0x292230>, LocalConfig = <module 'LocalConfig' from '/opt/tmda-cgi-0.12/LocalConfig.pyc'>

/opt/tmda-cgi-0.12/tmda-cgi.py in Call(Library=<module 'LocalConfig' from '/opt/tmda-cgi-0.12/LocalConfig.pyc'>, Str=None)

73 Library.Show(Str)
74 else:
75 Library.Show()
76 77 # Capture WebUID


Library = <module 'LocalConfig' from '/opt/tmda-cgi-0.12/LocalConfig.pyc'>, Library.Show = <function Show at 0x414470>

/opt/tmda-cgi-0.12/LocalConfig.py in Show()

  236       for Var in FormVars:
  237         Parts = Var.split(":")
  238         Value = vars(Defaults)[Parts[0]]
  239         if Value == None:
  240           Value = ""

Value = "['s', 'sender']", builtin vars = <built-in function vars>, global Defaults = <module 'TMDA.Defaults' from '../tmda/TMDA/Defaults.pyc'>, Parts = ['BOUNCE_TEXT_FILTER_INCOMING']

KeyError: 'BOUNCE_TEXT_FILTER_INCOMING'
      args = ('BOUNCE_TEXT_FILTER_INCOMING',)

Well, this looks like it may be a problem with either your config file or our assumptions about what is in it. Could you post your ~jared/.tmda/config file here?


===
Problem #2: Clicking on "Test Filters"

tmda-cgi cannot continue because a terminal error has been encountered.

Error: Command not recognized.
Cause: Unknown command: test_filt
Additional: Running in system-wide mode. Attempted to interpret command with euid 1025, egid 20.
Recommend: Please be patient while we release newer versions of the code which will implement this function.


As of now, I'm just going with "Recommended" and assuming it's an unimplemented feature, although I don't know why it would be a link if it's unimplemented.

Yes, it's an unimplemented feature. Yes, it's bad that there's a link for it :) The link is gone in the new theme available in 0.13. I'll remove it from the other theme in 0.13. When it comes out. Which is soon.


If it really bothers you, you can remove it by doing the following:
- Go into tmda-cgi/display/themes/Blue/template
- Edit the 'links.h' file and comment out the Test Filters line so it looks like the following:


<!--li><a href="%(Script)s?cmd=test_filt&SID=%(SID)s">Test Filters</a-->

- Execute `touch *.ht`
- Execute `make`

This has to be gnu-make, so on some systems (like FreeBSD, for example), this last command would have to be `gmake`.

--
Jim Ramsay
"Me fail English?  That's unpossible!"

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to