Re: What happened with python? messed strings?

2008-04-24 Thread gagsl-py2
(top posting fixed; please keep discussion on this list) --- [EMAIL PROTECTED] escribió: In article [EMAIL PROTECTED] you wrote: En Sun, 20 Apr 2008 15:54:20 -0300, [EMAIL PROTECTED] escribi?: I used extensively python and now I find this mess with strings, I can't even reproduce

DO YOU KNOW ANY THING ABOUT ISLAM???

2008-04-24 Thread ABDULLAH
What you are about to read might sound unusual but it could be very enlightened. So I would be thankful if you give my article 5 minute of your value time. THANK YOU Islam is a total system of living. A Muslim is supposed to live in peace and harmony with all these segments; hence, a Muslim is

Re: library to do easy shell scripting in Python

2008-04-24 Thread Matt Nordhoff
Wow, this message turned out to be *LONG*. And it also took a long time to write. But I had fun with it, so ok. :-) Michael Torrie wrote: Recently a post that mentioned a recipe that extended subprocess to allow killable processes caused me to do some thinking. Some of my larger bash scripts

Re: Unix Device File Emulation

2008-04-24 Thread A.T.Hofkamp
On 2008-04-23, blaine [EMAIL PROTECTED] wrote: On Apr 23, 2:01 pm, Martin Blume [EMAIL PROTECTED] wrote: blaine schrieb No, while 1: r = self.fifodev.readline() if r: print r else: time.sleep(0.1) is ok (note the if r: clause). Martin Beautiful! Thanks Martin!

annoying dictionary problem, non-existing keys

2008-04-24 Thread bvidinli
i use dictionaries to hold some config data, such as: conf={'key1':'value1','key2':'value2'} and so on... when i try to process conf, i have to code every time like: if conf.has_key('key1'): if conf['key1']'': other commands this is very annoying. in php, i was able to code

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html This

Re: RE: Lucky gay sucking cock while butt fucked deep

2008-04-24 Thread Bob Martin
in 344018 20080422 231351 Blubaugh, David A. [EMAIL PROTECTED] wrote: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. =20 So don't repeat them! --

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Oleg Broytmann
On Thu, Apr 24, 2008 at 11:13:25AM +0300, bvidinli wrote: if conf.has_key('key1'): if conf['key1']'': other commands this is very annoying. in php, i was able to code only like: if conf['key1']=='someth' in python, this fails, because, if key1 does not exists, it

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Martin v. Löwis
this is very annoying. Posting to so many lists is even more annoying. You might not get a single helpful answer just because people are so frustrated by this behavior. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Robert Bossy
bvidinli wrote: i use dictionaries to hold some config data, such as: conf={'key1':'value1','key2':'value2'} and so on... when i try to process conf, i have to code every time like: if conf.has_key('key1'): if conf['key1']'': other commands this is very annoying. in php, i

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread bvidinli
I posted to so many lists because, this issue is related to all lists, this is an idea for python, this is related to development of python... why are you so much defensive ? i think ideas all important for development of python, software i am sory anyway hope will be helpful.

Re: Explicit variable declaration

2008-04-24 Thread Terry Reedy
Filip Gruszczynski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | If you want to just declare that name exist, but doesn't want to | declare the type, why don't you just do this: Names do not 'exist' in Python, nor do they have types. They are bound to objects that have types.

Re: function that accepts any amount of arguments?

2008-04-24 Thread Terry Reedy
globalrev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | if i want a function that can take any amount of arguments how do i | do? | | lets say i want a function average that accepts any number of integers | and returns the average. To add to the other comments, read the ref manual

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Karthik
bvidinli wrote: I posted to so many lists because, this issue is related to all lists, this is an idea for python, this is related to development of python... why are you so much defensive ? i think ideas all important for development of python, software i am sory anyway hope will be

Re: @classmethod question

2008-04-24 Thread Bruno Desthuilliers
Scott SA a écrit : Hi, I'm using the @classemethod decorator for some convenience methods and for some reason, either mental block or otherwise, can't seem to figure out how to elegantly detect if the call is from an instance or not. Well, the point is that a classmethod *always* receive the

Re: python-ldap - Operations Error

2008-04-24 Thread Tim Golden
Michael Ströder wrote: Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising:

Re: @classmethod question

2008-04-24 Thread Arnaud Delobelle
Scott SA [EMAIL PROTECTED] writes: A side note class RecipieClass: Recipe is a more widespread spelling, I believe. Moreover it is the convention in python that only class names are capitalized, so you don't need to append a 'Class'. class Recipe: ... clafoutis =

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Arnaud Delobelle
bvidinli [EMAIL PROTECTED] writes: i use dictionaries to hold some config data, such as: conf={'key1':'value1','key2':'value2'} and so on... when i try to process conf, i have to code every time like: if conf.has_key('key1'): if conf['key1']'': other commands this

Re: Lists: why is this behavior different for index and sliceassignments?

2008-04-24 Thread Terry Reedy
John Salerno [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | John Machin wrote: | | Deletion occurs *only* in the corner case where there are no assigned | elements i.e. only if the RHS list (sequence) is *empty*. | | Oh, it was my understanding that deletion always occurs, even

Get Your Frozen Pills

2008-04-24 Thread easta01
http://twilight.110mb.com/gb/piac1.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Java or C++?

2008-04-24 Thread Nicola Musatti
On Apr 21, 3:14 pm, NickC [EMAIL PROTECTED] wrote: On Apr 15, 1:46 pm, Brian Vanderburg II [EMAIL PROTECTED] wrote: [...] Yeah, C++ does try to be helpful, and all of those automatic copy constructor, assignment operator and destructor implementations screw up royally when confronted with

Re: function that accepts any amount of arguments?

2008-04-24 Thread Ken
Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] globalrev wrote: if i want a function that can take any amount of arguments how do i do? lets say i want a function average that accepts any number of integers and returns the average. Use a parameter of the form

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: import ldap l = ldap.initialize(ldap://server.net;) l.simple_bind(DN, secret) 1 ^^^ You probably want to use the synchronous method simple_bind_s() since you want to impersonate on this LDAP connection immediately before doing anything else on that

Re: @classmethod question

2008-04-24 Thread M.-A. Lemburg
On 2008-04-24 05:27, Scott SA wrote: Hi, I'm using the @classemethod decorator for some convenience methods and for some reason, either mental block or otherwise, can't seem to figure out how to elegantly detect if the call is from an instance or not. Here's the problem: Within the class

Re: python-ldap: searching without specifying an OU?

2008-04-24 Thread Michael Ströder
hotani wrote: http://peeved.org/blog/2007/11/20/ BTW: This blog entry claims that LDAP_SERVER_DOMAIN_SCOPE_OID control cannot be used with python-ldap. But support for such simple LDAPv3 extended controls was added to python-ldap way back in 2005. Actually it's easy (relevant code

Re: Ideas for parsing this text?

2008-04-24 Thread Gerard Flanagan
On Apr 24, 4:05 am, Paul McGuire [EMAIL PROTECTED] wrote: On Apr 23, 8:00 pm, Eric Wertman [EMAIL PROTECTED] wrote: I have a set of files with this kind of content (it's dumped from WebSphere): [propertySet [[resourceProperties [[[description This is a required property. This is an

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Diez B. Roggisch
bvidinli schrieb: I posted to so many lists because, this issue is related to all lists, this is an idea for python, this is related to development of python... why are you so much defensive ? i think ideas all important for development of python, software i am sory anyway hope will

Re: library to do easy shell scripting in Python

2008-04-24 Thread alex23
On Apr 24, 12:22 pm, Michael Torrie [EMAIL PROTECTED] wrote: pipe([prog1,args],[prog2,args],...) Any ideas on how I could design this? There's a recipe on Activestate's Python Cookbook that does pretty much this: Allows arbitrary number of commands to be strung together with each one feeding

xyplorer crack

2008-04-24 Thread ridenour4159
xyplorer crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

civilization iv crack

2008-04-24 Thread ridenour4159
civilization iv crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

xxx crack

2008-04-24 Thread ridenour4159
xxx crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

intervideo windvd keygen

2008-04-24 Thread ridenour4159
intervideo windvd keygen http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

the apple patch diet

2008-04-24 Thread ridenour4159
the apple patch diet http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

orbital trader crack

2008-04-24 Thread ridenour4159
orbital trader crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

crack xp

2008-04-24 Thread ridenour4159
crack xp http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

ilife 08 keygen

2008-04-24 Thread ridenour4159
ilife 08 keygen http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

crack spyder

2008-04-24 Thread ridenour4159
crack spyder http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread D'Arcy J.M. Cain
On Thu, 24 Apr 2008 10:24:37 +0200 Robert Bossy [EMAIL PROTECTED] wrote: Way 2: make conf a defaultdict instead of a dict, the documentation is there: http://docs.python.org/lib/defaultdict-objects.html Only for 2.5 and up though. -- D'Arcy J.M. Cain [EMAIL PROTECTED] | Democracy

Re: py3k concerns. An example

2008-04-24 Thread Hrvoje Niksic
Martin v. Löwis [EMAIL PROTECTED] writes: In py3k string%dictionary is going away. Why do you say that? It's not going away in Python 3.0. I also got the impression that it was going away. PEP 3101's abstract says: This PEP proposes a new system for built-in string formatting

restructured text in python

2008-04-24 Thread bdsatish
Hi all, I have a python prog: #!/usr/bin/env Author: BDS Version: 1.0 def Hello(): Prints a Hello World to the screen print Hello, World if __name__ == __main__: Hello() I want to use ReSt (reStructuredText) in my docstrings or comments. Any example of how to do it,

Re: Python development tools

2008-04-24 Thread Bruno Desthuilliers
Torsten Bronger a écrit : Hallöchen! [EMAIL PROTECTED] writes: On 23 avr, 19:39, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are there any completely free developent tools for python scripts like IDLE. I have used IDLE , but I want to try out others also. I saw stuff like PyCrust, but I

Re: function that accepts any amount of arguments?

2008-04-24 Thread Steve Holden
Ken wrote: Steve Holden [EMAIL PROTECTED] wrote in message [...] def mean(*x): total = 0.0 for v in x: total += v return v/len(x) think you want total/len(x) in return statement Yes indeed, how glad I am I wrote untested. I clearly wasn't pair programming when I wrote

How to get inner exception traceback

2008-04-24 Thread Thomas Guettler
Hi, How can you get the traceback of the inner exception? try: try: import does_not_exit except ImportError: raise Exception(something wrong) except: ... Background: In Django some exceptions are caught and a new exception gets raised. Unfortunately the real error

Re: help needed with classes/inheritance

2008-04-24 Thread Bruno Desthuilliers
barbaros a écrit : On Apr 23, 10:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: My question is: can it be done using inheritance ? Technically, yes: class OrientedBody(Body): def __init__(self, orient=1): Body.__init__(self) self.orient = 1 Now if it's the right

Re: Python development tools

2008-04-24 Thread Torsten Bronger
Hallöchen! Bruno Desthuilliers writes: [...] and it ends multi-line strings at single quotes. it chokes on unbalanced single quotes in triple-single-quoted strings, and on unbalanced double-quotes in triple-double-quoted strings, yes. Given that I never use triple-single-quoted strings

Re: Spawing a thread and printing dots until it finishes

2008-04-24 Thread sophie_newbie
On Apr 22, 3:10 pm, sophie_newbie [EMAIL PROTECTED] wrote: Hi, I'm trying to write a piece of code that spawns a thread and prints dots every half second until the thread spawned is finished. Code is something like this: import threading class MyThread ( threading.Thread ): def run

Re: Spawing a thread and printing dots until it finishes

2008-04-24 Thread sophie_newbie
On Apr 24, 12:32 pm, sophie_newbie [EMAIL PROTECTED] wrote: On Apr 22, 3:10 pm,sophie_newbie[EMAIL PROTECTED] wrote: Hi, I'm trying to write a piece of code that spawns a thread and prints dots every half second until the thread spawned is finished. Code is something like this:

Re: Python development tools

2008-04-24 Thread Banibrata Dutta
On 4/24/08, Banibrata Dutta [EMAIL PROTECTED] wrote: On Windows, I use PyScripter, and it's quite nice and functional. On 4/24/08, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! Bruno Desthuilliers writes: [...] and it ends multi-line strings at single quotes. it

Re: Setting expirty data on a cookie

2008-04-24 Thread sophie_newbie
On Apr 22, 8:38 pm, David [EMAIL PROTECTED] wrote: On Tue, Apr 22, 2008 at 6:21 PM,sophie_newbie[EMAIL PROTECTED] wrote: Does anyone know how to do this? I can't seem to make it work. I'm using: c = Cookie.SimpleCookie() c['data'] = unamepwordwhatever c.expires = time.time() + 300

Re: function that accepts any amount of arguments?

2008-04-24 Thread Bruno Desthuilliers
Paul McNett a écrit : def avg(*args): return sum(args) / len(args) There are some dangers (at least two glaring ones) with this code, though, which I leave as an exercise for the reader. try: avg(toto, 42) except TypeError, e: print this is the first one : %s % e try: avg() except

Re: Python development tools

2008-04-24 Thread Bruno Desthuilliers
Torsten Bronger a écrit : Hallöchen! Bruno Desthuilliers writes: [...] and it ends multi-line strings at single quotes. it chokes on unbalanced single quotes in triple-single-quoted strings, and on unbalanced double-quotes in triple-double-quoted strings, yes. Given that I never use

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Steve Holden
bvidinli wrote: I posted to so many lists because, this issue is related to all lists, No, it isn't, as you would have discovered had you bothered to read the purpose of each list. For example, python-help and python-dev are mutually exclusive. this is an idea for python, It isn't an

Re: How to get inner exception traceback

2008-04-24 Thread Peter Otten
Thomas Guettler wrote: How can you get the traceback of the inner exception? You have to record it yourself or it will be lost. try: try: import does_not_exit except ImportError: raise Exception(something wrong) except: ... Background: In Django

Tkinter scrollbar and checkbox

2008-04-24 Thread goldtech
Hi, I'm stumped on how to have a scrollbar with a long list of checkboxes. Given code like: from Tkinter import * root = Tk() states = [] for i in range(150): var = IntVar() chk = Checkbutton(root, text=str(i), variable=var) chk.grid(sticky=W) states.append(var) root.mainloop()

Re: Setting expirty data on a cookie

2008-04-24 Thread sophie_newbie
On Apr 24, 12:41 pm, sophie_newbie [EMAIL PROTECTED] wrote: On Apr 22, 8:38 pm, David [EMAIL PROTECTED] wrote: On Tue, Apr 22, 2008 at 6:21 PM,sophie_newbie[EMAIL PROTECTED] wrote: Does anyone know how to do this? I can't seem to make it work. I'm using: c = Cookie.SimpleCookie()

Re: function that accepts any amount of arguments?

2008-04-24 Thread malkarouri
On Apr 24, 12:43 pm, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: [...] Not quite sure what's the best thing to do in the second case - raise a ValueError if args is empty, or silently return 0.0 - but I'd tend to choose the first solution (Python's Zen, verses 9-11). What's wrong with

Re: Ideas for parsing this text?

2008-04-24 Thread Mark Wooding
Eric Wertman [EMAIL PROTECTED] wrote: I have a set of files with this kind of content (it's dumped from WebSphere): [propertySet [[resourceProperties [[[description This is a required property. This is an actual database name, and its not the locally catalogued database name. The Universal

Re: How to get inner exception traceback

2008-04-24 Thread bockman
On 24 Apr, 13:20, Thomas Guettler [EMAIL PROTECTED] wrote: Hi, How can you get the traceback of the inner exception? try:      try:          import does_not_exit      except ImportError:          raise Exception(something wrong) except:      ... Background: In Django some exceptions

Re: How to get inner exception traceback

2008-04-24 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: On 24 Apr, 13:20, Thomas Guettler [EMAIL PROTECTED] wrote: Hi, How can you get the traceback of the inner exception? try: try: import does_not_exit except ImportError: raise Exception(something wrong) except: ... Background:

Re: restructured text in python

2008-04-24 Thread Jeroen Ruigrok van der Werven
-On [20080424 13:16], bdsatish ([EMAIL PROTECTED]) wrote: #!/usr/bin/env #!/usr/bin/env what? I guess you meant #!/usr/bin/env python Author: BDS Version: 1.0 def Hello(): Prints a Hello World to the screen print Hello, World I want to use ReSt (reStructuredText) in my docstrings

Re: Curious relation

2008-04-24 Thread Greg J
On Apr 24, 12:08 am, Dan Bishop [EMAIL PROTECTED] wrote: On Apr 23, 11:51 pm, Greg J [EMAIL PROTECTED] wrote: I was reading the programming Reddit tonight and came across this (http://reddit.com/info/6gwk1/comments/): ([1]2)==True True [1](2==True) True [1]2==True False

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Michele Petrazzo
bvidinli wrote: i use dictionaries to hold some config data, such as: conf={'key1':'value1','key2':'value2'} and so on... when i try to process conf, i have to code every time like: if conf.has_key('key1'): if conf['key1']'': other commands this is very annoying. in php, i was able to

Re: help needed with classes/inheritance

2008-04-24 Thread barbaros
Thanks to Paul McGuire and Bruno Desthuilliers for their comprehensive answers. This is exactly what I was looking for, except I did not know the correct name (composition/delegation). Now all I have to do is to study the supplied code, understand it and adapt it to my problem. Thank you very

Re: py3k concerns. An example

2008-04-24 Thread Paul McGuire
On Apr 21, 9:01 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: Perhaps you can manage to keep your code compatible with all versions, but   AFAIK the reccomended strategy is to write code compatible with Python 2.6   and use the 2to3 tool to generate the 3.0 source. And *not* edit the 3.0  

How to find the parent of an old-style class?

2008-04-24 Thread Jasper
I'm stuck using a library based on old style classes, and need to find a class's parent at runtime. With new style classes you can use .__base__ to inspect a parent, but I can't remember how this was done in days of yore, before object. I've tried googling, but apparently my search term Fu is

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Rick King
dict also has 'get' which provides a default if the key isn't defined: a={} print a.get('a','default') default -Rick King southfield MI -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-24 Thread Martin v. Löwis
Again, to me, this is a non-issue because I've been able to create a cross-version compatible single codebase for pyparsing. But it was a bit dicey there for a while, and I think other module developers/ maintainers may not be so lucky. I'm more optimistic. I tried it for Django, and while

Re: Tkinter scrollbar and checkbox

2008-04-24 Thread Mike Driscoll
On Apr 24, 7:11 am, goldtech [EMAIL PROTECTED] wrote: Hi, I'm stumped on how to have a scrollbar with a long list of checkboxes. Given code like: from Tkinter import * root = Tk() states = [] for i in range(150):     var = IntVar()     chk = Checkbutton(root, text=str(i), variable=var)

NameError: global name 'Response' is not defined

2008-04-24 Thread Lalit
Hi I am very new to web development. I started with Pylons. I am using http://www.rexx.com/~dkuhlman/pylons_quick_site.html as reference to create a sample web page using pylons. I got stuck up at step 4.3 i.e when modifying controller to return Response('pfirstapp default/p') I am getting

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-24 Thread Mike Driscoll
On Apr 23, 4:27 pm, John Nagle [EMAIL PROTECTED] wrote: Tim Golden wrote: John Nagle wrote: Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald [EMAIL PROTECTED] wrote: Sadly.  Thanks,  Ken  --  http://mail.python.org/mailman/listinfo/python-list

Re: annoying dictionary problem, non-existing keys

2008-04-24 Thread Steve Holden
Thanks for your reply. Another point to note: if you get a personal reply (often you will just see replies on the list, but sometimes people will also mail you directly) it is usual to make sure the list gets copied in any reply. I hope you don't mind that I am sending a copy of this message

Re: How to get inner exception traceback

2008-04-24 Thread bockman
On 24 Apr, 15:00, Christian Heimes [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: : class ReraisedException(Exception):     def __init__(self, message, exc_info):         Exception.__init__(self, message)         self.inner_exception = exc_info  try:       try:          

Loading associated files

2008-04-24 Thread flarefight
I am trying to make a a simple databasing GUI interface and and have created a module to deal with parsing the data from a file and a GUI based program that displays this data using PyQt4, i know how to register files in the system registry using python and also using Inno Setup which i use to

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Gary Herron
bvidinli wrote: i use dictionaries to hold some config data, such as: conf={'key1':'value1','key2':'value2'} and so on... when i try to process conf, i have to code every time like: if conf.has_key('key1'): if conf['key1']'': other commands this is very annoying. in php, i

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-24 Thread Paul Boddie
On 24 Apr, 16:33, Mike Driscoll [EMAIL PROTECTED] wrote: This is a legitimate issue and one I don't know how to solve. It would be nice to have some kind of verification process, but I'm unaware of anything affordable. If you have any ideas, feel free to express them. It'd be interesting

Billing system written in python

2008-04-24 Thread AC Perdon
Hi, I would like to develop a billing system for a cable tv system, basically what it does is have subscribers in db, compute billing statement, print for statement for distribution something like that. I was evaluating jbilling its a java base billing system that uses tomcat,mysql or postgress

Re: Ideas for parsing this text?

2008-04-24 Thread Eric Wertman
Thanks to everyone for the help and feedback. It's amazing to me that I've been dealing with odd log files and other outputs for quite a while, and never really stumbled onto a parser as a solution. I got this far, with Paul's help, which manages my current set of files: from pyparsing import

convert xhtml back to html

2008-04-24 Thread Tim Arnold
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. br /) to plain html (e.g. br). Seems simple enough, but I'm having some trouble with it. regexps trip up because I

Re: Ideas for parsing this text?

2008-04-24 Thread Paul McGuire
On Apr 24, 10:42 am, Eric Wertman [EMAIL PROTECTED] wrote: I'm sure there are cooler ways to do some of that.  I spent most of my time expanding the characters that constitute content.  I'm concerned that over time I'll have things break as other characters show up. Specifically a few of the

Re: convert xhtml back to html

2008-04-24 Thread Gary Herron
Tim Arnold wrote: hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. br /) to plain html (e.g. br). Seems simple enough, but I'm having some trouble with it. regexps

Re: Ideas for parsing this text?

2008-04-24 Thread Eric Wertman
I would discourage you from using printables, since it also includes '[', ']', and '', which are significant to other elements of the parser (but you could create your own variable initialized with printables, and then use replace([,) etc. to strip out the offending characters). I'm

Re: Problem using copy.copy with my own class

2008-04-24 Thread Jeffrey Barish
George Sakkis wrote: First off, inheriting from a basic builtin type such as int and changing its constructor's signature is not typical; you should rethink your design unless you know what you're doing. Nah, I would never claim to know what I'm doing. However, I have to say that I have been

Re: convert xhtml back to html

2008-04-24 Thread Arnaud Delobelle
Tim Arnold [EMAIL PROTECTED] writes: hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. br /) to plain html (e.g. br). Seems simple enough, but I'm having some

RE: MESSAGE RESPONSE

2008-04-24 Thread Blubaugh, David A.
Dear Sir, Belcan has an absolute zero-tolerance policy toward material such as the material described. Thank you for your Concern, David Blubaugh From: Dan Upton [mailto:[EMAIL PROTECTED] Sent: Wed 4/23/2008 12:27 PM To: python-list@python.org Subject:

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-24 Thread Mike Driscoll
On Apr 24, 10:15 am, Paul Boddie [EMAIL PROTECTED] wrote: On 24 Apr, 16:33, Mike Driscoll [EMAIL PROTECTED] wrote: This is a legitimate issue and one I don't know how to solve. It would be nice to have some kind of verification process, but I'm unaware of anything affordable. If you have

Installer

2008-04-24 Thread Chris
Hey all, I've created a python program that relies on pysqlite, wxpython, and matplotlib. Is there any way of creating an installer that will install all these modules, python 2.5 and my program? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: MESSAGE RESPONSE

2008-04-24 Thread D'Arcy J.M. Cain
On Thu, 24 Apr 2008 12:28:29 -0400 Blubaugh, David A. [EMAIL PROTECTED] wrote: Belcan has an absolute zero-tolerance policy toward material such as the material described. Hard to imagine that they would hold you responsible for something sent to you without your permission. On the other

Re: convert xhtml back to html

2008-04-24 Thread Tim Arnold
Gary Herron [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim Arnold wrote: hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. br /) to plain html (e.g.

Re: NameError: global name 'Response' is not defined

2008-04-24 Thread Diez B. Roggisch
Lalit schrieb: Hi I am very new to web development. I started with Pylons. I am using http://www.rexx.com/~dkuhlman/pylons_quick_site.html as reference to create a sample web page using pylons. I got stuck up at step 4.3 i.e when modifying controller to return Response('pfirstapp default/p')

Re: MESSAGE RESPONSE

2008-04-24 Thread Diez B. Roggisch
Blubaugh, David A. schrieb: Dear Sir, Belcan has an absolute zero-tolerance policy toward material such as the material described. That pairs up nicely with them having zero knowledge about the internet. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find the parent of an old-style class?

2008-04-24 Thread Jonathan Gardner
On Apr 24, 7:16 am, Jasper [EMAIL PROTECTED] wrote: I'm stuck using a library based on old style classes, and need to find a class's parent at runtime. With new style classes you can use .__base__ to inspect a parent, but I can't remember how this was done in days of yore, before object.

Re: Installer

2008-04-24 Thread Martin v. Löwis
I've created a python program that relies on pysqlite, wxpython, and matplotlib. Is there any way of creating an installer that will install all these modules, python 2.5 and my program? Sure. Look at Tools/msi in the Python code, and adjust it to your needs. Please don't use the official

Re: convert xhtml back to html

2008-04-24 Thread Tim Arnold
Arnaud Delobelle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim Arnold [EMAIL PROTECTED] writes: hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g.

Re: function that accepts any amount of arguments?

2008-04-24 Thread Jonathan Gardner
On Apr 24, 5:28 am, malkarouri [EMAIL PROTECTED] wrote: What's wrong with raising ZeroDivisionError (not stopping the exception in the first place)? Because when I use your module, call avg (or mean) without args, I should see an error that says, Hey, you have to pass at least one value in!

Re: convert xhtml back to html

2008-04-24 Thread Walter Dörwald
Arnaud Delobelle wrote: Tim Arnold [EMAIL PROTECTED] writes: hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. br /) to plain html (e.g. br). Seems simple enough,

RE: convert xhtml back to html

2008-04-24 Thread John Krukoff
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Tim Arnold Sent: Thursday, April 24, 2008 9:34 AM To: python-list@python.org Subject: convert xhtml back to html hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to

Re: Installer

2008-04-24 Thread Mike Driscoll
On Apr 24, 11:39 am, Chris [EMAIL PROTECTED] wrote: Hey all, I've created a python program that relies on pysqlite, wxpython, and matplotlib. Is there any way of creating an installer that will install all these modules, python 2.5 and my program? Thanks. Chris, If all you're doing is

Re: convert xhtml back to html

2008-04-24 Thread M.-A. Lemburg
On 2008-04-24 19:16, John Krukoff wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Tim Arnold Sent: Thursday, April 24, 2008 9:34 AM To: python-list@python.org Subject: convert xhtml back to html hi, I've got lots of xhtml pages that need

Re: Loading associated files

2008-04-24 Thread Mike Driscoll
On Apr 24, 10:14 am, [EMAIL PROTECTED] wrote: I am trying to make a a simple databasing GUI interface and and have created a module to deal with parsing the data from a file and a GUI based program that displays this data using PyQt4, i know how to register files in the system registry using

Re: python-ldap - Operations Error

2008-04-24 Thread theiviaxx
Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ immedialtey after import, then did the initialize trace_level=2 and did the simple_bind_s. I was able to search and get the results. That trace_level thing is nice, i'm

  1   2   3   >