[tweecode] any example *.tw files to help this Windows twee newbie get up and running?

198 views
Skip to first unread message

George Oliver

unread,
Apr 25, 2010, 4:54:41 AM4/25/10
to Tweecode
hi, I'm having a devil of a time just getting a test file running with
twee on Windows. I have a .tw file that looks like

<code>
:: Start
This is the start.

</code>

But when I run

> python twee.py myFile.tw > output.html

I never get the Start passage in my output, just 'this passage does
not exist', regardless of which target I use (previous threads on the
list show there may have been a problem at one time, but it seems like
it was fixed -- see http://code.google.com/p/twee/issues/detail?id=28).

Furthermore, unless I comment out this line in twee.py:

<code>

# the tiddlers
print tw.toHtml()

</code>

I get an error of


C:\Documents and Settings\george\My Documents\dev\twee-1.7.1>python
twee.py -t sugarcane killer1.tw > output.html
Traceback (most recent call last):
File "twee.py", line 102, in <module>
main(sys.argv[1:])
File "twee.py", line 86, in main
print tw.toHtml()
TypeError: toHtml() takes at least 2 arguments (1 given)


which makes sense, as toHtml() requires an argument (but I don't
understand why none is supplied here).

Anyway, to make a long story short, are there any example .tw files I
could download and try out just to make sure I'm not doing something
dumb with my simple .tw file?

--
You received this message because you are subscribed to the Google Groups "Tweecode" group.
To post to this group, send email to twee...@googlegroups.com.
To unsubscribe from this group, send email to tweecode+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tweecode?hl=en.

M. C. DeMarco

unread,
Apr 25, 2010, 12:40:07 PM4/25/10
to twee...@googlegroups.com
On Sun, Apr 25, 2010 at 4:54 AM, George Oliver <georgeo...@gmail.com> wrote:

> Anyway, to make a long story short, are there any example .tw files I
> could download and try out just to make sure I'm not doing something
> dumb with my simple .tw file?

You can download the .tw source code for some of Chris's stories at
Gimcrack'd. Click on the notepad icon at:
http://gimcrackd.com/untrue/remembered/

mary
--
___________________
mcde...@gmail.com
http://www.mcdemarco.net/
http://twitter.com/mcdemarco

George Oliver

unread,
Apr 25, 2010, 1:53:45 PM4/25/10
to Tweecode
On Apr 25, 9:40 am, "M. C. DeMarco" <mcdema...@gmail.com> wrote:

> You can download the .tw source code for some of Chris's stories at
> Gimcrack'd.  Click on  the notepad icon at:http://gimcrackd.com/untrue/remembered/
>
> mary


Thanks, that confirmed my test file was OK.

I don't quite understand the problem yet, but simply changing the
definition of TiddlyWiki.toHtml to "toHtml (self, app = None, target =
None, order = None)" solved the problem, and still lets me switch
targets -- apparently the target argument is never used? Anyway, it
works now as expected.
Reply all
Reply to author
Forward
0 new messages