Re: lyntin 4.1 snapshot
Paul Jimenez <[email protected]>
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
A small patch that I found useful:
diff -r1.20 tintincmds.py
350a351
> import os
352a354,357
>
> if filename.startswith("~"):
> import os.path
> filename = os.path.expanduser(filename)
for some reason I need the 'import os' or else on startup I get an error that looks like:
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/lyntin/engine.py", line 1027, in main
exported.lyntin_command("%sread %s" % (commandchar, mem), internal=1)
File "/usr/lib/python2.2/site-packages/lyntin/exported.py", line 98, in lyntin_command
myengine.handleUserData(text, internal)
File "/usr/lib/python2.2/site-packages/lyntin/engine.py", line 479, in handleUserData
session.handleUserData(mem, internal)
File "/usr/lib/python2.2/site-packages/lyntin/session.py", line 415, in handleUserData
spamargs = exported.filter_mapper_hook_spam("user_filter_hook", spamargs)
File "/usr/lib/python2.2/site-packages/lyntin/exported.py", line 681, in filter_mapper_hook_spam
output = mem(argmap)
File "/usr/lib/python2.2/site-packages/lyntin/commandmanager.py", line 287, in filter
command(ses, argdict, input)
File "/usr/lib/python2.2/site-packages/lyntin/modules/tintincmds.py", line 352, in read_cmd
if os.sep not in filename and not filename.startswith("http://"):
UnboundLocalError: local variable 'os' referenced before assignment
which I really don't understand b/c there's an 'import os' at the top of tintincmds.py.
Anwyay, the main thing that's useful is being able to put ~ in the filename args to
/read.
Also I've got some real basic stuff that builds a debian package... is this of
interest?
Take care.
--pj
On Thursday, Apr 29, 2004, will guaraldi writes:
>
>I'm kind of winding down on 4.1 development and changes. The current
>snapshot of what's in CVS is here:
>
>http://www.bluesock.org/~willg/dev/lyntin/lyntin40-04292004.tar.gz
>
>The following changes have happened since 4.0 released:
>
> * fixed lots of bugs:
> * fixed bug with datadir and automatic loading of .lyntinrc file
> * fixed bug with logger in prompt detection mode
> * fixed onetime actions
> * 18n fix for input encoding in tkui
> * fixed regex action trigger escaping
> * fixed #unload so it removes the module from our list of
> imported modules
> * fixed setup.py script
> * fixed #read to ignore blank lines in command files (use #cr
> if you want to send a carriage return)
> * fixed user interfaces so they can be anywhere on sys.path
>
> * fixed overuse of get_engine()
> * added a new cursesui
> * added tab completion to tk and curses user interfaces
> * optimized usage of filter_mapper style hooks
> * overhauled most of the managers removing unused methods/functions,
> simplifying the code, and making some fixes
> * moved variable storage from the VariableData objects to the Session
> object
> * adjusted global variables so they can be removed using the #unvariable
> command
> * enhanced the #@ command to behave more like the python interpreter
> command line
>
>The code is definitely faster and we have a working cursesui now. Those
>are probably the biggest changes.
>
>Any bugs, comments, suggestions, and such should be sent to the mailing
>list.
>
>Depending on how this snapshot goes and how much time I get to work on
>net module bugs, I'm looking at a 4.1 release in a week or two. Using the
>snapshot and reporting bugs will definitely help the quality effort
>significantly.
>
>Rock on!
>/will
>
>--
>whatever it is, you can find it at http://www.bluesock.org/~willg/
>except Will--you can only see him in real life.
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>Lyntin-devl mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/lyntin-devl
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click