What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
All, I'm trying to build a simple web application, but i still need things like sessions and Ajax. I tried to create a Zope product, but I honestly can't think of anything more cryptic. I really don't enjoy learning all of the magic code and debugging an environment I have to study to know

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
My question is: What makes you think that there is a royal road to web development? I don't, I was just hoping there was something I was missing, or more simple than anything I'd experienced. You have already chosen some technology (Ajax and ZODB) without any apparent justification. I've

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-05 Thread xkenneth
On Feb 5, 9:33 pm, xkenneth [EMAIL PROTECTED] wrote: My question is: What makes you think that there is a royal road to web development? I don't, I was just hoping there was something I was missing, or more simple than anything I'd experienced. You have already chosen some technology

Intra-Package References

2008-03-08 Thread xkenneth
Does your python module have to exist in the path in order for intra- package references to work? Regards, Kenneth Miller -- http://mail.python.org/mailman/listinfo/python-list

Logically/Selectively Sub Class?

2008-03-09 Thread xkenneth
Might be a silly question, but is it possible to selectively subclass, IE subclass is a supporting module is present and not otherwise. Regards, Kenneth Miller -- http://mail.python.org/mailman/listinfo/python-list

Re: Logically/Selectively Sub Class?

2008-03-09 Thread xkenneth
On Mar 9, 4:38 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth schrieb: Might be a silly question, but is it possible to selectively subclass, IE subclass is a supporting module is present and not otherwise. Yes, something like this should work class Foo(some, base, classes

Max File Size

2008-03-11 Thread xkenneth
Is the max file size a relevant issue in python anymore? I know OS X has a max file size of 8 exabytes and I'm not sure about the latest version of Ubuntu. Does python have an independent file size limit, or is it dependent upon the OS it was compiled on? Regards, Kenneth Miller --

Python - CGI - XML - XSD

2008-03-11 Thread xkenneth
Hi All, Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi script, and tell it print out all of the same XML, also served up by apache2, the XSD is not applied.

Re: Python - CGI - XML - XSD

2008-03-12 Thread xkenneth
On Mar 12, 6:32 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi All,    Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi script

Re: Python - CGI - XML - XSD

2008-03-12 Thread xkenneth
On Mar 12, 11:58 am, Stefan Behnel [EMAIL PROTECTED] wrote: xkenneth wrote: On Mar 12, 6:32 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi All,    Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML

Newbie Question - Overloading ==

2008-03-31 Thread xkenneth
So i generally write quite a few classes, and in most I need to overload the == operator. If i have two classes, like below: Class A: attribute a attribute b Class B: attribute a attribute c So if I've overloaded their respective __eq__ functions, and I want to test whether or not the

Re: Newbie Question - Overloading ==

2008-03-31 Thread xkenneth
Yeah, this is what I'm talking about: def __eq__(self, other) :   try :      return   except AttributeError:      return False That seems a bit nasty to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question - Overloading ==

2008-03-31 Thread xkenneth
On Mar 31, 3:42 pm, Amit Gupta [EMAIL PROTECTED] wrote: On Mar 31, 11:00 am, xkenneth [EMAIL PROTECTED] wrote: Yeah, this is what I'm talking about: def __eq__(self, other) :   try :      return   except AttributeError:      return False That seems a bit nasty to me. One

Oilfield Applications: WITS AND WITSML

2008-04-25 Thread xkenneth
All, If anyone has any interest in developing a bit of code for generating WITS and WITSML in python, then drop me a line. I've started a project on google apps, PyWITS, and I plan to support both WITS and WITSML through a set of standard libraries. I would really appreciate help from other

Simple GUI design in Python

2008-10-05 Thread xkenneth
All, I've posted some slides on my blog (xkenneth.blogspot.com) detailing some simple ways to describe GUI apps in python. Please let me know what you think. Regards, Kenneth Miller -- http://mail.python.org/mailman/listinfo/python-list

xml.etree.ElementTree and XPath

2008-10-18 Thread xkenneth
All, Can I execute XPath queries on ElementTree objects ignoring the namespace? IE './node' instead of './{http://namespace.com}node'. Is there any support for XPath and Minidom? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Anyone in the Houston / College Station / Austin area? Looking to do some sprints / joint projects.

2008-11-01 Thread xkenneth
All, I'm in Houston/College Station/Austin quite often and I'm looking for other coders to do some joint projects with, share experiences, or do some sprints. Let me know if you're interested. Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Design principles and architecture of an information transfer standard based on XML and SOAP

2008-06-26 Thread xkenneth
All, So i'm just about to undertake my first real open source project, and I'm looking for a bit of advice. There's an oilfield standard called WITSML (Wellsite Information Transfer Standard Markup Language - witsml.org), it's basically a collection of XML schemas and a spec for an

Standard Equation Description Language?

2008-07-07 Thread xkenneth
Does anyone know of a standard inter-language syntax for describing scientific/mathematical equations? Preferably something with parsers in multiple libraries. Regards, Kenneth Miller -- http://mail.python.org/mailman/listinfo/python-list

Emacs/Python Essentials?

2008-07-07 Thread xkenneth
What does everyone consider essential for emacs python dev? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Tab indentions on different platforms?

2007-12-28 Thread xkenneth
All, I seem to be having problems with running my python code, written on a Mac, on Linux and Windows boxes. It seems like the problem has to do with tab indention, particularly I've noticed that my code will completely ignore try statements. Has anyone had a similar problem? Regards, Ken

Optional code segment delimiter?

2007-12-29 Thread xkenneth
Is it possible to use optional delimiters other than tab and colons? For example: if this==1 { print this } And is there an alternate delimiter for statements other than the newline? print this;print that; #for example I know I'll probably get yelled at for this question,

XML-XSD Processing/Creation.

2008-01-02 Thread xkenneth
Hi All, So i'm working with the WITSML standard, which is a pretty massive standard defined in XML for the transfer of oilfield data. There are a ton of XSD files for defining and checking all data in the WITSML format. I'd like to be able to easily create XML based on the types defined by

Re: XML-XSD Processing/Creation.

2008-01-03 Thread xkenneth
On Jan 3, 1:55 am, Stefan Behnel [EMAIL PROTECTED] wrote: paul wrote: Can i create python classes based off the XSD files? What else can I do with the XSD files? This might be worth looking at:http://www.rexx.com/~dkuhlman/#generateDS If it's really such a complex XML language, the tool

Python Wiimote

2008-08-20 Thread xkenneth
All, I've just recently started fiddling with my Wiimote using python and PyBluez. I'm interested particular in getting the position IR sensor data out of the Wiimote, but I'd like to develop a library that let's you access all of it easily in an OO manner. If anyone has any interest in

View XMLRPC Requests/Responses?

2007-10-15 Thread xkenneth
Hi, I'm working on developing an XML-RPC interface from LabVIEW to python and I would really like to see how python is forming it's XML- RPC requests/responses. Is there any way I can force these to a log or print them to the screen? Thanks. Regards, Ken --

Organizing Sequential Data (TimeStamps) Overthinking?

2007-10-19 Thread xkenneth
All, Just a quick question. I want to be able to have a data structure that organizes data (timestamps I'm working with) sequentially, so that i can easily retrieve the first x amount of timeStamps without iterating over a list. My thought was to use a binary tree, am i overthinking the

Re: Securely distributing python source code as an application?

2007-12-07 Thread xkenneth
Message should have read: Hi All, I'll shortly be distributing a number of python applications that use proprietary source code. The software is part of a much larger system and it will need to be distributed securely. How can i achieve this? Regards, Ken --

Securely distributing python source code as an application?

2007-12-07 Thread xkenneth
Hi All, I'll shortly be distributing a number of python applications that use proprietary. The software is part of a much larger system and it will need to be distributed securely. How can i achieve this? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Conversion from string to integer

2006-03-22 Thread xkenneth
Hi, I've been attempting to write a serial program in python. I talk to a custom designed bit of hardware that sends me back groups that are 2 bytes in length. When i recieve them using either pySerial or USPP i'm not sure how python interprets them. Both of the bytes should be interpreted as

Re: Newbie: Print question

2006-03-22 Thread xkenneth
doesnt look like you're passing any data to the print statement, shouldn't it be something like print '%d' % 4 output: 4\n -- http://mail.python.org/mailman/listinfo/python-list

Bitwise OR?

2006-03-24 Thread xkenneth
Why is 3500 | -67 equal to 3500 instead of -3567? -- http://mail.python.org/mailman/listinfo/python-list

Watching serial port activity.

2006-05-29 Thread xkenneth
Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the transactions occur? I'm trying to reverse engineer a microcontroller serial routine and I'd like to see

Re: Watching serial port activity.

2006-05-29 Thread xkenneth
I'm using linux. -- http://mail.python.org/mailman/listinfo/python-list

Quick Question

2006-06-22 Thread xkenneth
I want to be able to cycle through an array and print something in hexadecimal. Such as this thisArray = [AF,0F,5F] for x in range(len(thisArray)): print \x + thisArray[x] However python chokes on the escaped identifier, how can I get around this? Thanks! Regards, Ken --

Sort of an odd way to debug...

2007-09-04 Thread xkenneth
All, Sorry for the vague topic, but I really didn't know how to describe what I want to do. I'd like to almost do a traceback of my code for debugging and I thought this would be a really cool way to do it if possible. What I'd like to do, is define a base class. This base class would have a

Organizing Code - Packages

2007-09-07 Thread xkenneth
All, I apologize if this is a commonly asked question, but I didn't find anything that answered my question while searching. So what I have right now is a few packages that contain some commonly used functions and another package that contains all of my custom error classes. I want these

Re: Organizing Code - Packages

2007-09-07 Thread xkenneth
Ah, yes, a couple of things: - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens Yes but i find it hard to edit classes easily when I have more than one class per file. Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing Code - Packages

2007-09-08 Thread xkenneth
On Sep 7, 2:04 pm, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Paul Rudin wrote: xkenneth [EMAIL PROTECTED] writes: Ah, yes, a couple of things: - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens Yes but i find it hard to edit classes easily when I have more than

Re: Organizing Code - Packages

2007-09-08 Thread xkenneth
On Sep 8, 3:35 pm, David [EMAIL PROTECTED] wrote: How do import statements that are declared at the top of a python module work? http://docs.python.org/tut/node8.html On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote: How do import statements that are declared at the top of a python

xmlrpclib and SimpleXMLRPCServer questions

2007-09-12 Thread xkenneth
So i've been trying to set up a simple server and client through XMLRPC in python. Here's my code: SERVER import SimpleXMLRPCServer class DataServer: def __init__(self): pass def test(self,test): self.this = test def show(self): print self.this server =

Re: xml question

2007-09-12 Thread xkenneth
There are built in tools for the DOM in Python. Also I'm using OSX to do XML parsing but I'm using the tools available from 4suite. On Sep 12, 2:21 pm, [EMAIL PROTECTED] wrote: Just curious if there's any python xml parsing tools built into the Mac (OS 10.4.10 Tiger)? If so, could anyone

Re: Can I overload the compare (cmp()) function for a Lists ([]) index function?

2007-09-28 Thread xkenneth
On Sep 28, 12:30 pm, xkenneth [EMAIL PROTECTED] wrote: Looking to do something similair. I'm working with alot of timestamps and if they're within a couple seconds I need them to be indexed and removed from a list. Is there any possible way to index with a custom cmp() function? I assume

Can I overload the compare (cmp()) function for a Lists ([]) index function?

2007-09-28 Thread xkenneth
Looking to do something similair. I'm working with alot of timestamps and if they're within a couple seconds I need them to be indexed and removed from a list. Is there any possible way to index with a custom cmp() function? I assume it would be something like... list.index(something,mycmp)

Wrapping LabVIEW and DAQmx Libraries for Python

2009-06-08 Thread xkenneth
All, I've started wrapping the DAQmx and other LabVIEW libraries for python using ctypes. I really like doing some things in python and other in LabVIEW, so I'd like to have the same functionality available for both. I've hosted the tiniest bit of code (mostly just proof of concept) on