This is posttemplate:
<div class="postholder">
<div class="name">
<br>
<!--INSERT NAME HERE--> <br>
<p>Posted on: <!--INSERT DATE HERE--> </p>
</div>
<div class="subject">
<!--INSERT SUBJECT HERE--> </div>
<div class="post">
<br>
<br>
<!--INSERT POST HERE-->
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
This is the error message:
>>> import retrieveposts
>>> retrieveposts.retrieve_posts('general', 'Hello, World', 20)
Traceback (most recent call last):
File "<stdin>", line 1, in ? File "retrieveposts.py", line 45, in retrieve_posts
posts = re.sub(content2, post[1], posts)
File "/usr/lib/python2.2/sre.py", line 143, in sub return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.2/sre.py", line 257, in _subx template = _compile_repl(template, pattern) File "/usr/lib/python2.2/sre.py", line 242, in _compile_repl
p = sre_parse.parse_template(repl, pattern) File "/usr/lib/python2.2/sre_parse.py", line 644, in parse_template
s = Tokenizer(source) File "/usr/lib/python2.2/sre_parse.py", line 186, in __init__ self.__next()
File "/usr/lib/python2.2/sre_parse.py", line 188, in __next
if self.index >= len(self.string):
TypeError: len() of unsized object>>>
Thanks for the help
Conrad
ps make the the text box bigger i dont know how to format it so it appears nicely
