Re: debugging segfaults in pythen PyQt (QWebview)

2011-03-04 Thread Marco Bizzarri
gt; I'm at a complete loss of what I am doing wrong in my script and would > hope to get at least some indication. > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Marco Bizzarri http://code.google.com/p/qt-asterisk/ http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Strangeness: Cannot write to a file from a process created by Windows Task Scheduler ...

2009-10-26 Thread Marco Bizzarri
> > Anyone have ideas what could be causing this? I suspect it's blocking on > something, but I can't imagine where. > > There is no stderr/stdout output anywhere in the program so it's not > blocking on anything stdio related (that I can imagine) >

Re: Help me plsss...

2009-06-30 Thread Marco Bizzarri
confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and delete this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > stri

Re: Decode a barcode ?

2009-06-24 Thread Marco Bizzarri
.tiny.be > Web: http://www.openerp.com > Planet: http://www.openerp.com/planet/ > Blog: http://stephane-wirtel-at-tiny.blogspot.com > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- Marco Bizzarri http://code.google.com/p/qt-asterisk/ http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python servlet for Java applet ?

2009-04-29 Thread Marco Bizzarri
ials on this) and then return here asking questions about what you're unable to do in python. Of course, these are my 2 cents. Regards Marco -- Marco Bizzarri http://sf.net/projects/qt-asterisk/ http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt4 - widget signal trouble

2009-04-26 Thread Marco Bizzarri
On Sun, Apr 26, 2009 at 12:38 PM, Joacim Thomassen wrote: > Den Sat, 25 Apr 2009 23:47:57 +0200, skrev Marco Bizzarri: > > > Hello Marco, > > python's fcntl() call the regular C fcntl() function and as stated in the > manual pages for C fcntl: > >

Re: PyQt4 - widget signal trouble

2009-04-25 Thread Marco Bizzarri
 self.show() >        def updateUi(self): >                self.centralwidget.reload() > > if __name__ == "__main__": >        app = QApplication(sys.argv) >        w = Watcher() >        main = MainWindow(w) >        app.exec_() > -- > http://mail.

Re: authentication example with urllib.request

2009-04-25 Thread Marco Bizzarri
you subclass it, and redefine the promp_user_password method). Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: DigitalSigner in Python

2009-04-25 Thread Marco Bizzarri
http://chandlerproject.org/Projects/MeTooCrypto Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python not importing mysqldb

2009-04-25 Thread Marco Bizzarri
5 for windows, and then download this one: http://sourceforge.net/project/downloading.php?group_id=22307&filename=MySQL-python-1.2.2.win32-py2.5.exe&a=71602382 I'm sure you'll save yourself a lot of time. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: return a value to shell script

2008-11-12 Thread Marco Bizzarri
Regards, > Devi > -- > http://mail.python.org/mailman/listinfo/python-list > import sys sys.exit(123) -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Unit Testing: a couple of questions

2008-10-28 Thread Marco Bizzarri
Moreover, don't fight your problem (integrating your objects) at the wrong level (unit testing); you'll need integration tests, where you use your *REAL* object end-to-end, maybe even talking with other subsystems, in order to check that you are working for real. And there,maybe, you c

Re: Python barcode decoding

2008-10-28 Thread Marco Bizzarri
hon-list > If you don't mind using a commercial Java lib, use http://www.tasman.co.uk/bars/readme.html. I'ts not exactly cheap, but it works very well, and support is good. The only suggestion I can give you is: stay away from mixed OCR/Barcode recognition software; usually they

Re: pyuno store OO object into blob

2008-10-12 Thread Marco Bizzarri
hon-list > I've little experience with firebird, and did this one only with PostgreSQL; but once you get the odf file, can't you just write on a temp file and read (and write) from that? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread Marco Bizzarri
;m curious how this can be done, does anyone know this? > > Almar > > -- > http://mail.python.org/mailman/listinfo/python-list > First result in "making a daemon in python with google": http://mail.python.org/pipermail/python-list/2007-February/427692.html (not tested)

Re: Zsi interoperability

2008-09-18 Thread Marco Bizzarri
On Thu, Sep 18, 2008 at 7:10 PM, Dieter Maurer <[EMAIL PROTECTED]> wrote: > "Marco Bizzarri" <[EMAIL PROTECTED]> writes on Mon, 15 Sep 2008 20:26:27 > +0200: >> On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: >> > Mailing

Re: recursion gotcha?

2008-09-14 Thread Marco Bizzarri
On Sun, Sep 14, 2008 at 10:08 AM, Marco Bizzarri <[EMAIL PROTECTED]> wrote: > On Sun, Sep 14, 2008 at 10:01 AM, cnb <[EMAIL PROTECTED]> wrote: >> this recursive definition of sum thrumped me, is this some sort of >> gotcha or am I just braindead today? >> and yes

Re: recursion gotcha?

2008-09-14 Thread Marco Bizzarri
acc=0): >if len(xs) == 0: >acc >else: >suma(xs[1:], acc+xs[0]) You're just missing the "return" statements? def suma(xs, acc=0): if len(xs) == 0: return acc else: return suma(xs

Re: Code example that will make a Skype connection?

2008-09-13 Thread Marco Bizzarri
e the connection is > made. > > Maybe you can find this useful? https://developer.skype.com/wiki/Skype4Py/examples/s4p_call_py Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

code style and readability [was: Re: Checking the boolean value of a collection]

2008-09-13 Thread Marco Bizzarri
On Sat, Sep 13, 2008 at 4:11 PM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote: > >> class FolderInUse: > >> >> >>def true_for(self, archivefolder): >>return any([instance.f

Re: Checking the boolean value of a collection

2008-09-13 Thread Marco Bizzarri
able, like: specification = FolderInUse(core) if specification.true_for(folder): ... Any thought about this? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking the boolean value of a collection

2008-09-13 Thread Marco Bizzarri
On Fri, Sep 12, 2008 at 6:07 PM, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Marco Bizzarri a écrit : > (snip) >> >> I'm afraid this have another problem for me... >> >> >> [EMAIL PROTECTED]:/var/local/zope28/porting/Products/PAFlow$ pytho

Re: Checking the boolean value of a collection

2008-09-12 Thread Marco Bizzarri
20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> def any(iterable): pass ... >>> any(x for x in [1, 2, 3]) File "", line 1 any(x for x

Re: Checking the boolean value of a collection

2008-09-12 Thread Marco Bizzarri
> ... return True > ... > > Diez > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks for the clarification, Diez! Indeed, I tried python2.3 and python2.4, and of course not python2.5 ;) I would like to make this available to the whole project. I suspect I

Re: Checking the boolean value of a collection

2008-09-12 Thread Marco Bizzarri
On Fri, Sep 12, 2008 at 4:09 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Marco Bizzarri schrieb: >> >> Hi all. >> >> In many parts of my code I've the following schema of code: >> >>def isInUseByOutgoingRegistratio

Checking the boolean value of a collection

2008-09-12 Thread Marco Bizzarri
True return False Before devising my own solution for this kind of problem, I wonder if there is a common solution for the problem. I'm looking for a python2.3 solution. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.o

Re: Python and Open Office

2008-09-11 Thread Marco Bizzarri
actively mantained and used in a big software project. And, also, it should be quite easy to extend in order to have your custom functions run via XML-RPC. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo

Re: Python and Open Office

2008-09-10 Thread Marco Bizzarri
noffice; you could try to get the OpenOffice.org developers guide and the SDK, and check it (but it is not a little work) Regards Marco > Thanks > > --greg > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding further report options to unittest.py

2008-09-10 Thread Marco Bizzarri
On Wed, Sep 10, 2008 at 3:25 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote: > >> Hi all. >> >> I would like to change the way test reports are generated, in a Zope >> environment. >> > > Have you looked at nosetests? Nose

Re: Presenting calculation results

2008-09-10 Thread Marco Bizzarri
point me in the right > direction from where to start? > > Thanks in advance! > -- > http://mail.python.org/mailman/listinfo/python-list > http://www.modpython.org/ Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Adding further report options to unittest.py

2008-09-10 Thread Marco Bizzarri
%s " % self.testsRun) _TextTestResult.startTest(self, test) now, of course, this is ugly, because I'm using _TextTestResult, which I'm not supposed to know, and I'm changing behaviour by subclassing, which is not exactly what I would like to do. What is the pythonic way to accompl

Re: use str as variable name

2008-09-05 Thread Marco Bizzarri
On Sat, Sep 6, 2008 at 7:52 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote: > >>> (...as Bruno implies, setattr(), len() et al can be and should be viewed >>> as >>> generic functions. >> >> Just a question: "gene

Re: use str as variable name

2008-09-05 Thread Marco Bizzarri
On Fri, Sep 5, 2008 at 9:16 PM, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Marco Bizzarri a écrit : >> >> Just a question: "generic functions" are not meant in the sense of >> "generic functions" of CLOS, am I right? > > Nope. Ju

Re: use str as variable name

2008-09-05 Thread Marco Bizzarri
On Thu, Sep 4, 2008 at 10:47 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > (...as Bruno implies, setattr(), len() et al can be and should be viewed as > generic functions. Just a question: "generic functions" are not meant in the sense of "generic functions&qu

Re: Core dumped while interacting with OpenOffice.org via pyuno

2008-09-05 Thread Marco Bizzarri
On Fri, Sep 5, 2008 at 3:50 PM, Maric Michaud <[EMAIL PROTECTED]> wrote: > Le Friday 05 September 2008 15:04:22 Marco Bizzarri, vous avez écrit : >> Hi all. >> >> I'm experiencing a core dump while working in the following environment >> >> - debain

Core dumped while interacting with OpenOffice.org via pyuno

2008-09-05 Thread Marco Bizzarri
a debug-enabled python in order to have more meaningful backtraces? - is there something else I should do in order to have more clues ("Read The Fine Manual (tm)" is an acceptable answer) Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-05 Thread Marco Bizzarri
typo. > > > -- > Stand Fast, > tjg. [Timothy Grant] > Right; that is one of the things I try to do to avoid this sort of problems. -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
re, if I want them, I will go for Java, or some other language like that. I understand that Python is a balance between different forces (like any software object around the world) and I'm simply asking some pointers to the discussion leading to this balance. That's all. -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
On Thu, Sep 4, 2008 at 2:43 PM, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: Well, Bruno, it looks like I've to wider my search in order to read something about it. Thanks for your suggestions, in any case. Regards Marco -- Marco Bizzarri http://notenotturne.blogspo

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
On Thu, Sep 4, 2008 at 4:39 PM, Marco Bizzarri <[EMAIL PROTECTED]> wrote: > > Most probably you're right. Maybe I will make a trip back to my > university books and take a look at them again :-) > Meant: you *are* right. Sorry. Saluti Marco -- Marco Bizzarri http://no

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
in :-) Thanks Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: overwrite set behavior

2008-09-04 Thread Marco Bizzarri
On Thu, Sep 4, 2008 at 3:07 PM, Maric Michaud <[EMAIL PROTECTED]> wrote: > Le Thursday 04 September 2008 14:31:23 Michele Petrazzo, vous avez écrit : >> Marco Bizzarri wrote: >> > looking at the source, maybe you could create a subclass of Set >> > redefining th

Re: Coming from .NET and VB and C

2008-09-04 Thread Marco Bizzarri
org/mailman/listinfo/python-list > Thanks for the pointer, Bruno... I wrote from my memory, but there is some bank of it which need quick replace ;) -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
r all, if it is wrong, I can move to a language like Java, which has a different approach on it. I'm really very interested in reading past discussion on it, if they are available. Regards Marco On Thu, Sep 4, 2008 at 12:57 PM, Marco Bizzarri <[EMAIL PROTECTED]> wrote: > Let's sa

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
On Thu, Sep 4, 2008 at 1:00 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Marco Bizzarri wrote: > >> Let's say I've a class a, where I can write: > > Anticipating this obviously premature posting: > > http://dirtsimple.org/2004/12/python-is-not-java.htm

Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Marco Bizzarri
Let's say I've a class a, where I can write: -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from .NET and VB and C

2008-09-04 Thread Marco Bizzarri
plication. Using Python. I found "Dive >> Into Python" which I will be reading shortly. >> >So one question: what RDBMs are supported in that space? The appearance is not an RDBMS, at least, maybe it is, but under the surface. Looks more that y

Re: overwrite set behavior

2008-09-04 Thread Marco Bizzarri
s, > Wojtek Walczak, > http://tosh.pl/gminick/ > -- > http://mail.python.org/mailman/listinfo/python-list > Saluti Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: overwrite set behavior

2008-09-04 Thread Marco Bizzarri
source, maybe you could create a subclass of Set redefining the __contains__ method? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDEs with F5 or hotkey shell interaction

2008-09-03 Thread Marco Bizzarri
st? > -- > http://mail.python.org/mailman/listinfo/python-list > I do not think I qualify for experienced users; I've used pydev for many years, and I'm quite comfortable with it. It is an eclipse based IDE, therefore you've some of its niceties and some of its dra

Re: Using httplib to access servlets on tomcat server

2008-09-03 Thread Marco Bizzarri
error: > > socket.gaierror: (11001, 'getaddrinfo failed') > > Do you know what I do wrong? > Thank you very much. > > localhost is not resolved to 127.0.0.1 on your machine. Try changing it to http://127.0.0.1:8080 Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print first(national) char from unicode string encoded in utf-8?

2008-09-01 Thread Marco Bizzarri
encode('utf8') I'm assuming here that the urlib.unquote(c.user.firstName) returns an encodable string (which I'm absolutely not sure), but if it does, this should take the first 'character'. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print first(national) char from unicode string encoded in utf-8?

2008-09-01 Thread Marco Bizzarri
in your snippet of code, if encoding is latin1, at least for what I can understand. Do not assume utf8 is a two byte encoding; utf8 is a variable length encoding. Indeed, 'a' encoded as utf8 is 'a' (one byte) 'à' encode as utf8 is '\xc3\xa0'

Re: Retrieving http headers from HTTPConnection object

2008-09-01 Thread Marco Bizzarri
oes the HTTPConnection object have a property that stores this ? > or is it retrievable by some other form? > > Thanks a lot. > -- Looking at the code of HTTPConnection, all that goes through the _output message (including, therefore, the putheaders) are appended to the self._buffer l

Re: Counting Elements in an xml file

2008-08-30 Thread Marco Bizzarri
> > Does anyone have any experience with this sort of thing? If so, could > you suggest a good library and possibly some samples? Isn't the SAX part of this howto http://pyxml.sourceforge.net/topics/howto/xml-howto.html enough for you to create your parser? Regards Marco -- M

Re: Writing to ms excel

2008-08-30 Thread Marco Bizzarri
will be calculated in the process). > I've been searching, but couldn't find any examples which allows that. Is it suitable for you to use a python program talking with a running instance of openoffice? in that case, pyuno could help you. -- Marco Bizzarri http://notenotturn

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
mport datetime # This might be a bad idea... I haven't > had problems yet though. datetime.datetime gets on my nerves though. > > just my .02 > > Eric > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks Eric; your 02 cents are worthy for me ;) Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ http://notenotturne.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
nction/method (or even in > their argument list, but that's a hack to be used only once in a > while): > localname = somemodule.somename > > Bye, > bearophile > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks again for sharing your thoughts with

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
ks Fredrik; I understand that is the underlying message of your article. I'm just confused because PEP8 seems to suggest that the from module import Class style is acceptable; is there a big "if you know what are doing" before, which I'm unable to see? Regards Marco --

Re: __stack_chk_fail_local

2008-08-30 Thread Marco Bizzarri
m, also, because I think it has to do with your setup (not that you setup something in the wrong way: just to have context). Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: __stack_chk_fail_local

2008-08-30 Thread Marco Bizzarri
2008 at 2:33 PM, gianluca <[EMAIL PROTECTED]> wrote: > On 30 Ago, 12:05, "Marco Bizzarri" <[EMAIL PROTECTED]> wrote: >> On Fri, Aug 29, 2008 at 7:53 PM, gianluca <[EMAIL PROTECTED]> wrote: >> > hy list, >> > I've built _libfoo.so and libfoo.

Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
a flat module) or from package.subpackage import module and then use module.MyClass (( for a package/subpackage structure )) Thank you all for your attention Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ http://notenotturne.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: __stack_chk_fail_local

2008-08-30 Thread Marco Bizzarri
o/python-list > Have you tried to use ldd against the _libfoo.so to check if it is able to get all the libraries it needs? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with packages and path

2008-08-28 Thread Marco Bizzarri
d. However, when I execute the code from the command line, I > get the following error: > > ImportError: No module named mypackage.unittests.test1 > 1) What is the command you're using to run the alltest.py module? 2) what is the result of: - python -c

Re: Python and database unittests

2008-08-27 Thread Marco Bizzarri
On Wed, Aug 27, 2008 at 10:26 AM, Simon Brunning <[EMAIL PROTECTED]> wrote: > 2008/8/27 Marco Bizzarri <[EMAIL PROTECTED]>: >> I strongly disagree on using mocks for a database; checking sequences >> of SQL statement is fragile, painful, and leads you to frustration >

Re: Newbie needs help

2008-08-27 Thread Marco Bizzarri
On Tue, Aug 26, 2008 at 8:33 PM, frankrentef <[EMAIL PROTECTED]> wrote: > > Would the second file need something akin to... > > loginout.admin (ie,url,adminlogin) Yes. Since you're importing the whole module. -- Marco Bizzarri http://iliveinpisa.blogspot.com/ --

Re: Python and database unittests

2008-08-27 Thread Marco Bizzarri
atabase (or whatever external resource you want to access), and, after that, it should be transparent for you, more or less. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and database unittests

2008-08-27 Thread Marco Bizzarri
ainful, and leads you to frustration when the actual SQL and the generated SQL do not match. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and database unittests

2008-08-27 Thread Marco Bizzarri
hould help you here: > > http://python-mock.sourceforge.net/ > > There's even an example on that page for mocking a database. > -- > http://mail.python.org/mailman/listinfo/python-list > -- Marco Bizzarri http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list