Tim Chase wrote: >>> try to use control+W to delete the previous word while I'm typing >>> in IE, only to have it close my whole window. Minutes of sotto >>> voce oaths usually follow. >> Ug. This would be disastrous to a clerk on a tight queue. In the very >> least it looks like I may have to make Firefox a requirement as there >> appear to be fewer push-here-to-explode opportunities. > > The best way to prevent this is to make AJAX'y submissions in the > background as they work, basically writing the application > interface in JavaScript. It's an ugly job to code, but it can > help save page-fulls of lossage. FireFox has similar behavior > with control+W, but I believe if it's something you really want > to prevent, you can bind it to a NOP to prevent it from > occurring. I've not gone hacking FF configs/chrome to such a degree.
That's probably way more JavaScript than I'm likely to do anytime soon but it's good to know that such techniques can be made to work. >> Would that be ReportLab perchance? Print solutions in Python seems to be >> a scarce species. I've used ReportLab with mixed success. If you know of >> another one to look at I'd sure be eager. > > A short dig in the c.p.l archives found the link I had seen: > > http://wiki.wxpython.org/Printing > > Again, that was for printing to a printer attached to the server, > rather than a printer attached to the web-client. Ok. I've done printing from the two methods described in wxPython. The HTML variety is good for very simple cases but quickly runs out of power even long before full HTML would. The full wxPrint is a bit like coding in Assembler and has some bugs. > Another option is to send the direct PCL yourself. I've > hand-cranked printer drivers for a couple thermal printers (Zebra > and Oneil) that had some basic page-layout functions that I could > use. I just sent the printer-specific codes over the wire (IrDA, > BlueTooth serial-profile, or serial-port in case) for fast and > simple printing. If you just need a text dump that you can do > via simple escape codes, this isn't a bad way to go. A bit of a > pain to decipher printer manuals to get those codes...but > feasible. At least for those two printers, the PCL is pretty > straight-forward and well documented. Yes. This is really easy for stuff like Zebra printers. Hadn't thought of it for the bigger ones needing lots of PCL but it could be done easily enough with a little work to abstract some of the basic drawing. Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---