Fwd: AttributeError: 'unicode' object has no attribute 'Expand'

Zeno Davatz <[email protected]>
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
Ok, this problem was solved by downgrading to Python 2.3.5!!!

Best
Zeno

---------- Forwarded message ----------
From: Zeno Davatz <[email protected]>
Date: Dec 13, 2005 1:25 PM
Subject: AttributeError: 'unicode' object has no attribute 'Expand'
To: [email protected]


Hi

I'm running TMDA and TMDA-CG as following:

tmda-cgi:       tmda-cgi/0.13 "Aluminum" (Python/2.4.2 on
Linux-2.6.11.11-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-glibc2.0)
TMDA:   TMDA/1.0.3 "Seattle Slew" (Python/2.4.2 on
Linux-2.6.11.11-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-glibc2.0)

Compile Params
AUTH_ARG:       /var/vpopmail/bin/vchkpw
AUTH_TYPE:      program
BASE_DIR:       /usr/lib/python2.3/site-packages/
CGI_DISP_DIR:   /resources/tmda-cgi
CGI_MODE:       system-wide
IDs:    UID: 89 (89) GID: 89 (89)
SESSION_EXP:    300
SESSION_ODDS:   0.01
SESSION_PREFIX:         /tmp/TMDASession.
VLOOKUP:        vpopmail1 /var/vpopmail/bin/vuserinfo ~
VUSER:  vpopmail

These days I constantly get the following error message provoked by
attached Mail. I get such an error every day now!

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
 /usr/local/src/tmda-cgi-0.13/tmda-cgi.py
  188   elif Cmd == "pending":
  189     import PendList
  190     Call(PendList)
  191   elif Cmd == "restore":
  192     pass
Call = <function Call>, PendList = <module 'PendList' from
'/usr/local/src/tmda-cgi-0.13/PendList.py'>
 /usr/local/src/tmda-cgi-0.13/tmda-cgi.py in Call(Library=<module
'PendList' from '/usr/local/src/tmda-cgi-0.13/PendList.py'>, Str=None)
   86     Library.Show(Str)
   87   else:
   88     Library.Show()
   89
   90 # Capture WebUID
Library = <module 'PendList' from
'/usr/local/src/tmda-cgi-0.13/PendList.py'>, Library.Show = <function
Show>
 /usr/local/src/tmda-cgi-0.13/PendList.py in Show()
  570           ScRadio.Add()
  571
  572         Row.Add()
  573         Count = Count + 1
  574
Row = <Template.Template instance>, Row.Add = <bound method
Template.Add of <Template.Template instance>>
 /usr/local/src/tmda-cgi-0.13/Template.py in
Add(self=<Template.Template instance>, Dict={'CharSet': 'utf-8',
'CheckName': 'c9', 'Date': '2005-12-08', 'DispDir':
'/resources/tmda-cgi', 'DispRange': '1-100 of 104', 'ErrMsg': 'No
error message returned. Sorry!', 'FilterOptions': '', 'MsgClass':
'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9', ...})
  258     if not Dict: Dict = self.Dict
  259     self.HTML.append(copy.deepcopy(self.BoilerPlate))
  260     self.Expand(Dict)
  261
  262   def Clear(self):
self = <Template.Template instance>, self.Expand = <bound method
Template.Expand of <Template.Template instance>>, Dict = {'CharSet':
'utf-8', 'CheckName': 'c9', 'Date': '2005-12-08', 'DispDir':
'/resources/tmda-cgi', 'DispRange': '1-100 of 104', 'ErrMsg': 'No
error message returned. Sorry!', 'FilterOptions': '', 'MsgClass':
'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9', ...}
 /usr/local/src/tmda-cgi-0.13/Template.py in
Expand(self=<Template.Template instance>, Dict={'CharSet': 'utf-8',
'CheckName': 'c9', 'Date': '2005-12-08', 'DispDir':
'/resources/tmda-cgi', 'DispRange': '1-100 of 104', 'ErrMsg': 'No
error message returned. Sorry!', 'FilterOptions': '', 'MsgClass':
'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9', ...})
  250             self.LonePctSearch.sub(self.LonePctRepl, self.HTML[i]) % Dict
  251       else:
  252         self.HTML[i].Expand(Dict)
  253     self.BeenExpanded = 1
  254     return self
self = <Template.Template instance>, self.HTML = [<Template.Template
instance>, <Template.Template instance>, <Template.Template instance>,
<Template.Template instance>, <Template.Template instance>,
<Template.Template instance>, <Template.Template instance>,
<Template.Template instance>, <Template.Template instance>,
<Template.Template instance>], i = 8, ].Expand undefined, Dict =
{'CharSet': 'utf-8', 'CheckName': 'c9', 'Date': '2005-12-08',
'DispDir': '/resources/tmda-cgi', 'DispRange': '1-100 of 104',
'ErrMsg': 'No error message returned. Sorry!', 'FilterOptions': '',
'MsgClass': 'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9',
...}
 /usr/local/src/tmda-cgi-0.13/Template.py in
Expand(self=<Template.Template instance>, Dict={'CharSet': 'utf-8',
'CheckName': 'c9', 'Date': '2005-12-08', 'DispDir':
'/resources/tmda-cgi', 'DispRange': '1-100 of 104', 'ErrMsg': 'No
error message returned. Sorry!', 'FilterOptions': '', 'MsgClass':
'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9', ...})
  250             self.LonePctSearch.sub(self.LonePctRepl, self.HTML[i]) % Dict
  251       else:
  252         self.HTML[i].Expand(Dict)
  253     self.BeenExpanded = 1
  254     return self
self = <Template.Template instance>, self.HTML = ['\n <tr>\n <td
colspan="9" bgcolor="#7A...="a8" value="pass" checked>\n </td>\n ',
<Template.Template instance>, '\n ', <Template.Template instance>, '\n
', <Template.Template instance>, '\n ', <Template.Template instance>,
'\n ', <Template.Template instance>, u'\n <td valign="top"
style="padding-left: 8..." style="padding-right: 5px">5k</td>\n
</tr>\n'], i = 10, ].Expand undefined, Dict = {'CharSet': 'utf-8',
'CheckName': 'c9', 'Date': '2005-12-08', 'DispDir':
'/resources/tmda-cgi', 'DispRange': '1-100 of 104', 'ErrMsg': 'No
error message returned. Sorry!', 'FilterOptions': '', 'MsgClass':
'NewMsg', 'MsgID': '1134082604.4519.msg', 'MsgName': 'm9', ...}

AttributeError: 'unicode' object has no attribute 'Expand'
      args = ("'unicode' object has no attribute 'Expand'",)

Any help is greatly appreciated.

Thanks and best
Zeno
pending.crash.tgz (application/x-gzip, 3.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.