It's not wrong, but you won't get the results you want. If you want to
display HTML your should send the content-type: text/html.
regards Ola Natvig
--
http://mail.python.org/mailman/listinfo/python-list
O $table (".implode(", ",
array_keys($query_param)).") VALUES ('".implode("','", $query_param)."')";
how it can be done, using python (elegantly, without cycles)?
sql = "INSERT INTO %s (%s) VALUES (%s)" % (table,
SQL or postgree in
your trunk :)
ola
--
----------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
Bengt Richter wrote:
If there is to be an MSPython, how long 'til Mozilla FirePython? ;-)
Regards,
Bengt Richter
'Reclaim your runtime'
I can't wait...
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.p
Ola Natvig wrote:
When raising an exception with a value for instance an integer you
assume that when catching the exception the value can be compared with
other integers. That is not what happens.
try:
raise Exception, 12
except Exception, number:
print number == 12
# False
This is
variable is a exception instance and not an
integer.
I wonder if I'm the only one which find this behavior odd, and if anyone
knows if there is a way to retrieve the original initialization value of
the exception.
ola
--
------
Ola Natvig <[EMAIL P
uld do the trick
ola
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
e hav expirienced this problem and perhaps found a
solution to it.
Ola
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
und )
It was called SAP DB, I can recomend that one, the only trouble I've had
with it is the Python drives in a heavily threaded environment, even
with locking.
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.p
hare a database based filesystem which is spread over various numbers
of drives and servers.
I haven't seen one so far; however, is it possible that you could serve your
users through HTTP? I have done so in a similar situation like yours.
Or FTP..
--
----------
Ol
t.
The software I'm using on the computer I've done the tests on:
Python 2.4 (ActivePython)
Pyana 0.9.2
Win XP Pro SP2
I've tried with both precompiled and self compiled versions of the Pyana
package.
ola
--
----------
Ola Natvig <[EMAIL PROTECTED
eal problem are the detecting of the session
start and beeing able to disable the disk. I don't know which (if any)
COM service that can be used.
ola
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
e executed.
ola
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
bject):
def __del__(self):
There should be a super(self.__class__, self)._del__() here if I'm not
totaly wong, which could be the case here ;)
print "Base.__del__"
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSens
lity on *nix systems.
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
Does anyone know a good library for transfering non standard characters
to enity characters in html. I want characters like < and > to be
transformed to < and >. And the norwegian ø to ø
ola
--
------
Ola Natvig <[EMAIL PROTECTED]
Aljosa Mohorovic wrote:
can i do something like this:
s = "myFunction"
a = s() # equals to: a = myFunction()
a = locals()[x]()
locals() returns a dictionary with string keys that you can use
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense
Peter Hansen wrote:
Ola Natvig wrote:
Does anybody know why it's not possible to raise Exceptions which are
types (new-style-classes). I know all standard exceptions are classic
classes, but if you make a custom exception which both inherits from a
exception class and a new-style one t
raising types as
exceptions that I can't think of ?
--
----------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
method...
thanks!
alex
use:
log(str(handle.info()))
str creates a string object from a supplied object with a __str__
method. I think print calls str on what it is going to print
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
Max M wrote:
Ola Natvig wrote:
Olivier Noblanc ATOUSOFT wrote:
Hello
What is the equivalent function of php isset() in python
try:
if variable:
# isset
pass
except NameError:
# not set
pass
you could use:
>>> 'variable' in vars()
But be aware
work...
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
odule located at inc/setupxml.py
It's said that it imports the setupxml *module* from the inc *package*
All packages should include a __init__.py file. The import may not work
unless. You will get the __init__.py file if you type
import inc
--
------
Ola Natv
s_ap_i1_xgl14/104-9460635-7128701?v=glance&s=books&n=507846
--
----------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
re not good practice to access
theese through that name.
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
to the threads.
--
----------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
Ola Natvig wrote:
Anybody out there who knows if the 4suite implementation of XSLT are a
threadsafe one?
What do you mean by that? You can of course transform xml using xslt in as
many threads as you like - but what do you want with two or more threads in
_one_
Anybody out there who knows if the 4suite implementation of XSLT are a
threadsafe one?
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
that in Python. But it should not be to much work if you
don't need many functions.
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
What makes the leftmost expression different from the iterable returning
expression inside the for? The same arguments apply there.
It's not different, but it's a requirement that the iterable returns the
same data every time. I know that anyone can type range = fancyRange and
make this return a
Diez B. Roggisch wrote:
Would it be a bad solution to make that a list or tuple of ten
time.time() calls, you could also restrict what theese prebuilding
sequenses could contain, or perhaps try to prebuild them, and then fail
if it's impossible.
I don't fully understand what you mean. Restricting
impossible.
--
------
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
Op 2005-01-18, Steve Holden schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Op 2005-01-18, Nick Coghlan schreef <[EMAIL PROTECTED]>:
Raymond Hettinger wrote:
[Delaney, Timothy C]
Nick's other suggestion - that genexps propagate __len__ - might
still be interesting. Of cou
ept: SSLv3 read client key exchange A
LOOP: SSL accept: SSLv3 read finished A
LOOP: SSL accept: SSLv3 write change cipher spec A
LOOP: SSL accept: SSLv3 write finished A
LOOP: SSL accept: SSLv3 flush data
INFO: SSL accept: SSL negotiation finished successfully
reg
L accept: SSLv3 read client key exchange A
LOOP: SSL accept: SSLv3 read finished A
LOOP: SSL accept: SSLv3 write change cipher spec A
LOOP: SSL accept: SSLv3 write finished A
LOOP: SSL accept: SSLv3 flush data
INFO: SSL accept: SSL negotiation finished successfully
reg
isn't installed
if you are familliar with the .NET framework you can use the beta
release og Python.NET to create your GUI. It gives you access to the
Windows Forms controlls in the .NET framework
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS /
has the same value as the item this will cause problems
because keys in your result dictionary can be overwritten. Could it be a
option to build the result dictionary as a dictionary with the values
as the keys, and lists of keys as the value. Perhaps you need to use a
loop for this.
--
---
range(len(mylist)) if mylist[i] == 1]
--
--
Ola Natvig <[EMAIL PROTECTED]>
infoSense AS / development
--
http://mail.python.org/mailman/listinfo/python-list
File "/usr/lib/python2.3/locale.py", line 280, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: nb_NO
Any help would appreciated.
Thanks,
Stas
I believe the standard locale for "Norsk bokmål" is 'no_NO'.
Anyone that knows anyone knows a win32 Py2.4 build of pyOpenSSL?
Or perhaps has a outstanding alternative to this SSL package. It's
imperative the package is as simmilar to the standard socket library of
python.
Anyone?
--
------
Ola Natvig <[EMAIL P
40 matches
Mail list logo