RE: Diagramming code

2012-07-16 Thread Sells, Fred
You leave many relevant questions unanswered. 1. Is the original developer/team available or have you been left with the code and little or no doc's? 2. How big is big in terms of the number of files/modules in the project? 3. Is there a reasonable structure to the project in terms of director

RE: Object Models - decoupling data access - good examples ?

2012-08-07 Thread Sells, Fred
Given that "the customer is always right": In the past I've dealt with this situation by creating one or more "query" classes and one or more edit classes. I found it easier to separate these. I would then create basic methods like EditStaff.add_empooyee(**kwargs) inside of which I would drop

RE: New in Python , Need a Mentor

2013-01-02 Thread Sells, Fred
The need for a "python-aware" editor is the commonly held opinion, although the debate about which editor is endless. I use Eclipse + PyDev only because I found it first and like it. The only suggestion I would offer is to separate the business logic completely from the HTML request/response h

derived class name in python 2.6/2.7

2013-01-30 Thread Sells, Fred
This is simple, but I just cannot find it after quite a bit of searching I have this basic design class A: def __init__(self): print 'I am an instance of ', self.__class__.name class B(A): pass X = B I would like this to print "I am an instance of B" but I kee

RE: Overlayong PDF Files

2012-05-02 Thread Sells, Fred
Assuming your form has actual PDF data entry fields. I export the form to a .fdf file, run a little script to replace fieldnames with %(fieldname)s and save this as a staic template. At run time I'll merge the template with a python dictionary using the % operator and shell down to pdftk to m

RE: Refactor/Rewrite Perl code in Python

2011-07-25 Thread Sells, Fred
Sometimes it's worth asking Why? I assume there would be no need to rewrite if the existing code did most of what was needed. It may be easier to ask the customer what he really wants rather than to re-engineer a crappy solution to an obsolete problem. -- http://mail.python.org/mailman/listinfo

reading zipfile; problem using raw buffer

2011-07-26 Thread Sells, Fred
I'm tring to unzip a buffer that is uploaded to django/python. I can unzip the file in batch mode just fine, but when I get the buffer I get a "BadZipfile exception. I wrote this snippet to try to isolate the issue but I don't understand what's going on. I'm guessing that I'm losing some header/

RE: reading zipfile; problem using raw buffer

2011-07-26 Thread Sells, Fred
Thanks all, adding the 'rb' and 'wb' solved that test case. The reason I read the file "the hard way" is that I'm testing why I cannot unzip a buffer passed in a file upload using django. While not actually using a file, pointing out the need for the binary option gave me the clue I needed to up

RE: Selecting unique values

2011-07-26 Thread Sells, Fred
The set module or function (depends on which python version) will do this if you make each record a tuple. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventistcare@python.org] On Behalf Of Peter Otten Sent: Tues

RE: Community Involvement

2011-08-05 Thread Sells, Fred
After the completion of most training courses, the students are not yet ready to make a meaningful contribution to the community. Yet your goal of getting them involved in the community is worthwhile. I would think learning to use the community as a resource to solve a problem that is not bas

newbie needs help with cookielib

2011-05-04 Thread Sells, Fred
I'm using Python 2.4 and 2.7 for different apps. I'm happy with a solution for either one. I've got to talk to a url that uses a session cookie. I only need to set this when I'm developing/debugging so I don't need a robust production solution and I'm somewhat confused by the docs on cookielib.

RE: Is Python worth it??

2005-11-15 Thread Sells, Fred
I second what others have said about the tutorials. I have not read "how to think like a ..." but from other posting here I have reservations about it as a starting point. -Original Message- From: Simon Brunning [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 4:42 AM To: john b

RE: HTML generation vs PSP vs Templating Engines

2005-11-16 Thread Sells, Fred
If this is your first try, use cgi, cgitb and html % dictionary as suggested in this thread. If your db is mysql, you can actually use os.popen() (or equivalent) to run a 'mysql -html -e "select * from yaddayadda" to return html. you can make that look prettier with css. here's a quick and dirty

Auto Install Linux Rpm's

2005-11-16 Thread Sells, Fred
We would like to use Python to automatically deploy new rpm's (assuming we first edit a file to require a new version). I've just starting looking a the rpm module. I can build this from scratch, but was wondering if anyone is/has solved some or all of this problem or could point me to some "good

RE: Developing Commercial Applications in Python

2005-01-03 Thread Sells, Fred
At Sunrise Software International, we build commercial applications for Cabletron and the Florida DMV. This was ~10 years ago; so no useful docs available, but we had no problems with license. -Original Message- From: Richards Noah (IFR LIT MET) [mailto:[EMAIL PROTECTED] Sent: Monday, Jan

RE: a question

2005-01-19 Thread Sells, Fred
I would use something like cmd = '%s/mos user wmarch, ' % mosbin cmd += 'cd /fa/wm/%s/%s, ' % (jaar, filetype) cmd += ... which reveals that you don't have enough args to satisfy all the %s's -Original Message- From: Nader Emami [mailto:[EMAIL PROTECTED] --snip-- I have a long command in U

RE: Running Python interpreter in Emacs

2005-06-27 Thread Sells, Fred
It works for me in W2000; I have an ancient .emacs file that someone gave me that I use on each new system, wheter unix or windows and have never had a problem. It usually has to be installed at C:/ to work, unless you understand emacs better than I. I've inserted the file ".emacs" below, for tho

RE: I am a Java Programmer

2005-07-06 Thread Sells, Fred
It takes great courage to turn from the dark side; let the pforce be with you. Also, go to Borders, get the python books and a Latte and figure out if one of the many books is written in a style that you like. -Original Message- From: bruno modulix [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: How do you program in Python?

2005-07-06 Thread Sells, Fred
I'm old school and have been very happy with emacs (on windows) and the python extensions. I just edit my file and hit control-C twice and it runs. I'm also using eclipse with PyDev and it's ok, but sluggish. -Original Message- From: anthonyberet [mailto:[EMAIL PROTECTED] Sent: Sunday, Ju

RE: Yet Another Python Web Programming Question

2005-07-12 Thread Sells, Fred
FWIW there's "dos2unix" program that fixes this on most systems. -Original Message- From: Bill Mill [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 11:55 AM To: Daniel Bickett Cc: python-list@python.org Subject: Re: Yet Another Python Web Programming Question > Python using CGI, f

2.3 or 2.4 on linux

2005-08-04 Thread Sells, Fred
We are in the process of standardizing ~10 Linux servers on Lineox 4.x, which is a variant of RedHat Enterprise server I'm told. Part of that process is to standardize python. The baseline install includes python 2.3 which is adequate, but I would like to standardize on 2.4.1, because it is the l

FW: python oldie, SWIG newbie needs help

2005-08-16 Thread Sells, Fred
-Original Message- From: Sells, Fred Sent: Tuesday, August 16, 2005 5:09 PM To: python-list@python.org Subject: python oldie, SWIG newbie needs help I've been trying all day to get a simple SWIG generated interface to a simple (but ugly) piece of c++ code provided to us by the

RE: Coin-operated kiosk written in python -- need some help...

2005-08-18 Thread Sells, Fred
I've done a similar app, but it keeps a gui up awaiting a timeclock punch. You need to tackle this in phases: 1. what os and get the gui to start at bootup. 2. start a separate thread that reads/blocks on the coin. you need more specific questions to get better help -Original Message- Fro

RE: gridbaglayout

2004-12-24 Thread Sells, Fred
gridbag is a pain. google for tablelayout which is easier (to me) -Original Message- From: Diez B. Roggisch [mailto:[EMAIL PROTECTED] Sent: Monday, December 20, 2004 1:17 PM To: python-list@python.org Subject: Re: gridbaglayout [EMAIL PROTECTED] wrote: > Friends - I have tried to do ab

Need Help: Server to pass py objects

2005-03-29 Thread Sells, Fred
I have a legacy system with data stored in binary files on a remote server. I need to access and modify the content of those files from a webserver running on a different host. (All Linux) I would like to install a server on the legacy host that would use my python code to translate between the l

RE: Need Help: Server to pass py objects-THANKS

2005-03-30 Thread Sells, Fred
Thanks to all who responded. Although overwhelmed by the hits from a Google search initially, it looks like pyro is a good choice for my needs. -Original Message- From: Ken Godee [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:45 PM To: python-list@python.org Subject: Re: Need He

RE: Equivalent string.find method for a list of strings

2005-04-09 Thread Sells, Fred
linenums = [i for i in range(len(lines)) if lines[i].find(searchstring) >=0] -Original Message- From: Joshua Ginsberg [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 4:12 PM To: [EMAIL PROTECTED] Subject: Re: Equivalent string.find method for a list of strings try: filter(lambda

RE: PPC OSX vs. x86 Linux

2005-04-09 Thread Sells, Fred
I'm no expert on internals, but I seem to recall that in the past, the string module could be implemented in either C or Python and I think there is a strop module that is related to all this. Could it be that on the Mac, your string processing is using interpreted Python byte code while linux use

RE: Generating RTF with Python

2005-04-14 Thread Sells, Fred
Apache fop does a good job of combining xslt+xml to generate pdf; the spec says it does RTF, but I have not tried it. Although fop is java, you can run it as a (java) executable, so you could run it as a command from python. It is almost as good as reportlab's stuff. -Original Message- Fr

noobie needs help with ctypes

2013-12-09 Thread Sells, Fred
I'm using python 2.6 on Linux/CentOs 6.x I'm getting ctypes to work, but getting stuck on the use of .argtypes. Can someone point out what I'm doing. This is my first use of ctypes and it looks like I'm getting different definitions in stackoverflow that may correspond to different version o

RE: noobie needs help with ctypes

2013-12-09 Thread Sells, Fred
] On Behalf Of Joel Goldstick Sent: Monday, December 09, 2013 3:22 PM To: Terry Reedy Cc: python-list@python.org Subject: Re: noobie needs help with ctypes On Mon, Dec 9, 2013 at 3:15 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: On 12/9/2013 2:24 PM, Sells, Fred wrote: I'm using py

RE: noobie needs help with ctypes

2013-12-10 Thread Sells, Fred
Mucho apologies for rich text, I think I picked that up when replying to a post without properly checking. Thanks for heads up. Fred. -- https://mail.python.org/mailman/listinfo/python-list

meta language to define forms

2014-03-27 Thread Sells, Fred
I'm trying to use python classes and members to define complex data entry forms as a meta language The idea is to use a nice clean syntax like Python to define form content, then render it as HTML but only as a review tool for users, The actual rendering would go into a database to let a vendo

RE: webapp development in pure python

2011-10-25 Thread Sells, Fred
Quixote may be what you want, but it's been years since I've used it and I don't know if it is still alive and kicking. It was from MEMS if I remember correctly. Using django and Flex is one way to avoid html and javascript and it works great for datagrids. Fred. -- http://mail.python.org/mail

RE: Using the Python Interpreter as a Reference

2011-11-25 Thread Sells, Fred
I'm looking at a variation on this theme. I currently use Flex/ActionScript for client side work, but there is pressure to move toward HTML5+Javascript and or iOS. Since I'm an old hand at Python, I was wondering if there is a way to use it to model client side logic, then generate the javascript

RE: Py and SQL

2011-12-01 Thread Sells, Fred
I find it easier to code like this Sql = ‘’’select yadda, yadda, yadda FROM a,b,c Where this=that ORDER BY deudderting’’’ With the appropriate %s(varname) and % against a dictionary rather than positional args, but that’s just me. From: python-list-bounces+frsells=adventistcare...

RE: Using the Python Interpreter as a Reference

2011-12-02 Thread Sells, Fred
Steven, that's probably the most elegant explanation of the "pythonic" way I've ever seen. I'm saving it for the next time upper management want to use Java again. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventi

RE: Shebang line on Windows?

2013-02-25 Thread Sells, Fred
When moving from windows to unix you need to run "dos2unix" on any programs that use shebang (at least with python 2.6) that is installed on some platforms but must be installed on others like CentOs but it is in their repository. -Original Message- From: Python-list [mailto:python

UDP socket, need help setting sending port

2005-12-19 Thread Sells, Fred
;click". Any help would be greatly appreciated. Fred Sells fred at adventistcare dott org --- The information contained in this message may be privileged and / or confidential and protected from disclosure. If the re

RE: UDP socket, the solution

2006-01-04 Thread Sells, Fred
import socket, threading, time, binascii, struct from Configure import Debug thanks to all, here's my final code that works, if it helps anyone import socket, threading, time, binascii, struct from Configure import Debug ZERO = chr(0) class Udp: def __init__(self, my_address, destination_a

ldap .passwd method, need help

2006-01-13 Thread Sells, Fred
I've got the python-ldap version 2.0.11 with python 2.4 under Linux I've got the ldap stuff working for groups, but now I'm trying to use it to change a user password. I get a return of 2 and no error messages but it does not change ldap. I've tried it with uid = 'joeblow' and with oldpw=whateve

ldap passwd need help

2006-01-18 Thread Sells, Fred
I've got the python-ldap version 2.0.11 with python 2.4 under Linux I've got the ldap stuff working for groups, but now I'm trying to use it to change a user password. I get a return of 2 and no error messages but it does not change ldap. I've tried it with uid = 'joeblow' and with oldpw=whateve

RE: Where is Python in the scheme of things?

2006-10-05 Thread Sells, Fred
Every C++ and Java programmer that I know, who have done a moderate sized project in Python (thus requiring learning it's strengths) states that they hope to never go back to C++ or Java. I cannot comment on VB programmers, since I don't speak to them ;) -- http://mail.python.org/mailman/listinfo

RE: CGI Tutorial

2006-10-06 Thread Sells, Fred
content is great, my comments are editorial. I prefer PDF with bookmarks rather than HTML. 1. easy to print the whole thing and read offline. 2. easy to find a secion from bookmarks, rather that chasing links 3. easy to save on my local "doc" folder so I can be sure It will always be there. (i.e

RE: ideas for programs?

2006-05-31 Thread Sells, Fred
to regurgitate what others have said. trying to solve a real-world problem is significantly more educational that writing toy programs and class assignments. Solving a real-world problem will generate more interest in your potential ability that knowing any language. Pick a problem that you and

RE: CGI -> mod_python

2006-10-03 Thread Sells, Fred
I'm confused. is WSGI only a specification, or are there implementations, and if so which ones -- http://mail.python.org/mailman/listinfo/python-list

RE: Python work in UK

2006-11-29 Thread Sells, Fred
The technical director of Cabletron used to write applications in Python, then give the working product/code to the development group to convert. Perhaps you could build stuff in Python and outsource the conversion to India? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

RE: python vs java eclipse

2006-12-02 Thread Sells, Fred
If you're in the PyDev perspective, F9 runs the current script while ctrl-F11 reruns the last script run. I have found that certain types of operations just plain don't work this way and must be run from a conventional shell window. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

RE: Async callback in python

2006-12-06 Thread Sells, Fred
the standard print gets "delayed" somewhere inside python, however if you use print >>sys.stderr, "whatever", 3, 4 5 that prints immediately, or so it seems to me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Linan Sent: Monday, December 04, 2006 11:18 P

MySQLdb insert fails on one table

2007-06-01 Thread Sells, Fred
I have this table mysql> describe valid_individuals; +---+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+-+---+ | fname | varchar(30) | YES | | NULL| | | lname | varchar(30)

RE: MySQLdb insert fails on one table

2007-06-01 Thread Sells, Fred
thank you! that was it. I created the table using a create table (select from which must have defaulted to InnoDb, now I just create it in a script. > -Original Message- > From: Carsten Haese [mailto:[EMAIL PROTECTED] > Sent: Friday, June 01, 2007 8:56 AM > To: Sell

RE: Graph plotting module

2007-06-05 Thread Sells, Fred
www.vpython.org might be overkill, but it was easy to do simple 2d charts. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Grant Edwards > Sent: Monday, June 04, 2007 11:23 AM > To: python-list@python.org > Subject: Re: Graph plotting module > > > O

RE: Beginning Python

2007-06-06 Thread Sells, Fred
I find 3 elements contribute significantly to becoming competent in python 1. a decent IDE so you can see the big picture (multiple files and directories). I use Eclipse + PyDev because Eclipse supports other goodies like CVS. I'm sure other IDE's are as good if not better, but who has time to c

RE: pydev help

2007-06-20 Thread Sells, Fred
uncheck mylar and it should work. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Christopher L Judd > Sent: Tuesday, June 19, 2007 9:00 AM > To: Danyelle Gragsone > Cc: python-list@python.org > Subject: Re: pydev help [html-removed] > > > Its calle

RE: Help With Better Design

2007-06-25 Thread Sells, Fred
> IMHO ... untested > > class LightBulb: > def __init__(self, on=False): self.IsOn = on > > def turnOn(self): self.switchIt(True) > def turnOff(self):self.switchIt(False) > > def switchIt(self, turnon): > if self.isOn==turnon: print "The Switch is Already %s

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
concur 100%. You can breeze through the fist half of the online tutorial in a about 2 cups of coffee but you don't know what you don't know until you try to do something real. Even with 20 years of working with Python, I find goodies in the cookbook for each new project. Get a python aware edito

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
> > Wow Fred! You're awesome! How did you get 20 years in of Python when > it was created in 1991? You're right, programming skills exceed basic math. I think I started around 1990 with version 0.92 beta. -- http://mail.python.org/mailman/listinfo/python-list

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
this one is fun: http://www.vpython.org/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of swordofrue > Sent: Thursday, June 28, 2007 1:50 PM > To: python-list@python.org > Subject: Re: Evolution of a pythonistas! > > > Thanks everyone for your respon

RE: MySQL -->Python-->XML for JSviz

2007-07-03 Thread Sells, Fred
Sometimes sneaky is better than elegant. You could shell down to a command line invocation of mysql and specify -xml as the output format. I'm not sure how close that format is to what you need or how much you could leverage views (if using mysql 5.0). You could also use a command line xslt proce

python app to emulate terminal to dialup bulletin board

2007-07-03 Thread Sells, Fred
We need to automate the download of data that is now done manually via a terminal session to a dialup bulletin board. The user uses this to upload and download files. Hard to believe in this day and age, but true. I've tried google, but the terms are just too common; all I get is clutter. So I

best SOAP module

2007-07-18 Thread Sells, Fred
I need to talk to a vendor side via SOAP, Googling is overwhelming and many hits seem to point to older attempts. Can someone tell me which SOAP module is recommended. I'm using Python 2.4. --- The information contained in

RE: Python Web Programming - looking for examples of solidhigh-tr affic sites

2007-05-21 Thread Sells, Fred
I just started using flex (flex.org) from Adobe for the front end and am quite amazed at what it can do. Good docs. Clean client/server api if you like xml. It's relatively new so you still have to turn over some rocks and kiss some frogs to figure out how to get exactly the behavior you want in

RE: Filemaker interactions

2007-08-28 Thread Sells, Fred
filemaker 8.0 (Pro I think) has a web page generator. That's all I know, since I didn't really need it. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of M.-A. Lemburg > Sent: Saturday, August 25, 2007 4:36 PM > To: Ian Witham > Cc: python-list@python.

RE: i can`t get python working on the command line (linux)

2007-03-13 Thread Sells, Fred
looks like it is expecting command line agrs that are not there. put this at the top of your code to see what's going on import sys print sys.argv remembering that the first element printed is sys.argv[0] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of M

RE: Mocking OpenOffice in python?

2007-03-14 Thread Sells, Fred
I currently use Java to generate a 150 page PDF from about 50 .odt files, including replacing occurrances of about 10 "place-holder" phrases from data in our system. I do not use the OOo database/mailmerge features, just UNO. This process takes about 20 seconds on my 2 year old XP laptop and about

RE: Need help with apack compression code

2007-03-16 Thread Sells, Fred
try google: "python apack" found several in general, always google first; python has so many devotees that someone has generally solved most problems already. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of priya kale Sent: Thursday, March 15, 2007 11:33 PM

RE: Choosing Python

2007-03-19 Thread Sells, Fred
glad to hear it. Those of us who would like to introduce it in reluctant schools elsewhere could benefit from a post-semester evaluation, including student comments and some sample, running projects. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL P

RE: Fortran vs Python - Newbie Question

2007-03-26 Thread Sells, Fred
1. Python is fun! 2. Python is cool! 3. Most of the time you can google a solution, i.e. somebody has already done nearly everything you can think of. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, March 26, 2007 8:21 AM To: p

RE: How to Start

2007-09-14 Thread Sells, Fred
I like eclipse+pydev; although I did pay my dues learning the basics of eclipse. F9 saves file and runs it. If you're an emacs dude, emacs + python mode is pretty good. ctrl-c ctrl-c runs the active buffer. Of course if you don't already know emacs, avoid it like the plague. > -Original Mes

Mysqldb printing sql and params no matter what I do

2007-10-02 Thread Sells, Fred
I had some code originally that printed the sql and params when I called the .execute method. I removed it but it still prints. I rebooted and renamed files and still it prints. I am totally stumped; I tried google but perhaps didn't use the right search; got a lot of hits but no clues. I'm usi

RE: Mysqldb printing sql and params ... NEVER MIND

2007-10-02 Thread Sells, Fred
el stupido here "accidently" put a couple of print statements into a mysqldb module when eclipse opened it from the link in the stacktrace; -- http://mail.python.org/mailman/listinfo/python-list

RMI with Pyro et al

2007-10-10 Thread Sells, Fred
I need a simple client/server architecture with clients on linux and servers on windows. There is no UI in this part, just business rules and access control. Pyro seems pretty cool for this due to it's simplicity. I'm just starting with it and have not been able to get the server side to "see"

RE: RMI with Pyro et al

2007-10-11 Thread Sells, Fred
Diez B. Roggisch wrote . Why do you want that (hot deploy) > anyway? Does startuptime of a script really bother you? > shouldn't take > more than a few seconds. My primary need is development/debug. I'm a Pyro newbie and I add a feature and then test. The only way I've found to kill the Pyro

RE: Problem with MySQL cursor

2007-10-11 Thread Sells, Fred
I don't think you can substitute the table name and column names in the execute, just values ( I could be wrong) try building it like this: sql = "INSERT INTO %s %s VALUES " % (taablename, columnstuple, '(%s)') cursor.execute(sql, values) > Hello, > I have a function that executes a SQL statemen

RE: RMI with Pyro et al -- thanks for help

2007-10-11 Thread Sells, Fred
thanks, that should do it Diez wrote: > Go install cygwin (but not it's included python-interpreter, > or at least > make sure you have your python path properly under control) > and then simply > start the script from the command-line. And hit C-c if you > need it to stop, > and restart it. On

Pyro: ActiveState (wind32) to Unix

2007-10-11 Thread Sells, Fred
I'm using ActiveState python on a windows box to talk to ACtive Directory. I'm running a Pyro Server on the same box. The client is Linux running std Python 2.4. It works just fine until the server codes calls some win32com.client api; then I get Traceback (most recent call last): File "

OpenOffice 2.0 UNO update Links; need help

2007-01-21 Thread Sells, Fred
I've got a ~100 page document I assemble from ~30 OOo .odt files with some search and replace functions. I then produce a PDF. So far so good. Now I need to get a barcode from our internal website and insert that. The barcode will vary based on some parameters. Our internal site provides a .jp

RE: Python tools to manipulate JARs ?

2007-01-31 Thread Sells, Fred
I have not tried this, but... Assuming jython is out of the question You might want to try a simple java command line program you could run from popen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andy Dingley Sent: Wednesday, January 31, 2007 11:11 AM

RE: How can I access data from MS Access?

2007-02-05 Thread Sells, Fred
Peter, I sadly admit that I was wrong. "Doesn't seem to work" is effectivly even more useless than "doesn't work". I give up. Years ago we used to get our FORTRAN card decks back from the DP center with a piece of scrap paper saysing "She No Work". top that. -- http://mail.python.org/mailman/li

RE: Testers please

2007-02-13 Thread Sells, Fred
cool product, I'll test depending on schedule at the time. one (more) suggestion (from those of us who arn't doing the work ;) is to put this in eclipse, rather than apache, since many developers work with it. Please no IDE wars, I like emacs too, but when I'm trying to teach to newbies I use elci

RE: Eric on XP for Newbie

2007-02-28 Thread Sells, Fred
I've been using Eclipse with the PyDev extension. it's not bad, although you need a reasonably powerful computer to handle the bloat of Eclipse. For short programs, I still like emacs, but I'm old school. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of SPE

RE: Using Python To Change The World :)

2007-11-14 Thread Sells, Fred
It sounds as if this project is a major task based on your current level of experience. That being said, all we "pythonistas" encourage and support anyone who is trying to learn/apply python. Break the problem into 2 parts: --simulation math of what you're trying to do --cool visual display (2D

RE: Anyone knows how to use xemacs with ipython or python on WinXP? [phishing][html-removed]

2007-11-19 Thread Sells, Fred
you did remember to "byte-compile" the python-mode.el file? > I am struggling to make the ipython or python works in > xemacs. I have been seraching on the internet for a solution > for one day. I have put python-mode.el and ipython.el in the > load-path and in the xemacs I type: M-x load libra

RE: newbie Q: sequence membership

2007-11-19 Thread Sells, Fred
> >>> a, b = [], [] > >>> a.append(b) > >>> b.append(a) did you perhaps mean a.append('b'); b.append('a'); otherwise this seems pretty advanced for a newbie > >>> b in a > True > >>> a in a > Traceback (most recent call last): > File "", line 1, in > RuntimeError: maximum recursion depth exce

RE: Python web frameworks

2007-11-21 Thread Sells, Fred
-snip-- > > Thanks everyone for the response. From the posts I understand that > Django and pylons are the best. By searching the net earlier I got the > same information that Django is best among the frameworks so I > downloaded it and I found it very difficult to configure. I referred > the dja

RE: Python web frameworks + adobe flex

2007-11-21 Thread Sells, Fred
slight shift of topic here. I'm a newbie at standard web stuff. Mostly java webstart and a little mod_python. I experimented with Adobe Flex and really loved it for doing the front end. The backend needs to provide xml, json or AMF (an adobe proprietary binary format). For prototyping, I was

OpenOffice UNO export PDF help needed

2006-04-29 Thread Sells, Fred
I've geen googling for 3 days now, and cannot find out how to do this. I'm trying to use OpenOffice 2.0 and UNO to generate PDF documents. I'm using windows, but will have to make it work under Linux for production. I've been able to set the parameters and call the exportToPdf method, but the exp

pyuno and oootools with OpenOffice 2.0

2006-05-04 Thread Sells, Fred
I'm using windows xp and OpenOffice 2.0 and doing my first project with pyuno. I've got the basics to work,. An example I googled at http://blogs.nuxeo.com/sections/aggregators/openoffice_org/blogaggregator_vi ew?b_start:int=0 imported an ootools module. When I try to import it, it does not exis

pyuno and PDF output

2006-05-04 Thread Sells, Fred
I can use java to output a PDF file using uno, but when I try to do it in python, I get an IO Exception with no added information. The relevant code snippet follows: from com.sun.star.beans import PropertyValue PDF= PropertyValue( "FilterName" , 0 , "writer_pdf_Export", 0 ) doc2.storeAsURL("

RE: Looking for very light weight template library (not framework)

2008-03-11 Thread Sells, Fred
As I recall Quixote allowed you to embed html in python. was actually pretty cool. Havenot tried it in a long time. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Malcolm Greene > Sent: Thursday, March 06, 2008 8:56 PM > To: python-list@python.org

RE: Can I run a python program from within emacs?

2008-03-25 Thread Sells, Fred
I use a .emacs file (attached) that some associates gave me nearly 20 years ago. Some of it is OBE now, but it still works for me on both windows and Linux. With this file I can cntrl-c cntrl-c (i.e. ^c twice to run the current buffer). Don't ask me to explain it, it just works. > -Orig

RE: Python advocacy . HELP!

2008-12-24 Thread Sells, Fred
Prof. Kanabar (kanabar.bu.edu) is planning to offer a python course there soon. Perhaps he could help. Tell him you got his name from me (Fred Sells). > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:python-list-bounces+frsells=adventistcar

RE: Python Apache Handler

2009-01-09 Thread Sells, Fred
Mod_python works, but if you are doing anything significant look into one of the many frameworks like turbogears or django. More structure to learn but less code when all is said and done. > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:pyth

RE: Django or TurboGears or Pylons? for python web framework.

2008-11-07 Thread Sells, Fred
I use Flex (from adobe) for the client side and turbogears for the server side and pass xml or json in between. It gives you a Flash client which is very Sexy and browser independent and very simple turbogears code in Python. Flex is essentially open source, but the IDE is about $295, although the

RE: Introducing Python to others

2009-04-02 Thread Sells, Fred
When doing the same thing, I like Using a dictionary to return a function or a class definition based on a msg id and let that returned value "handle" the message that contained the id. Something like Class XYZ: ... MyHandlers = {42:XYZ, ... Message = read_from_somewhere_else() Handl

RE: Newbie In Python

2008-05-20 Thread Sells, Fred
get a python-aware editor. I vary between emacs and Eclipse, depending on my mood and the size of the project. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Bruno Desthuilliers > Sent: Tuesday, May 20, 2008 6:25 AM > To: python-list@python.org > S

RE: do you fail at FizzBuzz? simple prog test

2008-05-20 Thread Sells, Fred
or for i in range(1,100): print ('fizz','','')[i%3] + ('buzz','','','','')[i%5] or i > > > > "Write a program that prints the numbers from 1 to 100. But for > > multiples of three print "Fizz" instead of the number and for the > > multiples of five print "Buzz". For numbers which are multiples

adobe flex; return xml via turbogears/django

2008-05-29 Thread Sells, Fred
please excuse slightly off-topic; cannot access turbogears mailing list at the moment. There was an excellent video by James Ward that showed using turbogears to return json data to adoble's flex UI. It simply used @expose("JSON") def (): ... return dict(x=1, ...) Is there

RE: adobe flex; return xml via turbogears/django

2008-05-29 Thread Sells, Fred
Diez wrote: > Why don't you create KID-template like this: > > ${root} > > and in the controller say > > @expose("thexmltemplate") > def ... >return dict(root=myElementTreeRoot) > sounds good. Does that "py:strip" remove the and anything outside it. I'll be doing a flex style ajax call

RE: PyDev multiple source files?

2008-05-30 Thread Sells, Fred
the short answer is a file is a module; therefore to 'include' access to 'myclass' in file xyz.py from another file called 'abc.py' you would put this in abc.py import xyz #note no '.py' x = xyz.myclass() or from xyz import myclass #if you're lazy use ... import * x = myclass() see the basic

  1   2   >