Would it not be nice if you could assign decorators to attributes too ?
for example
class C:
@staticattribute
data='hello'
or
class C:
@privateattribute
data='hello'
--
http://mail.python.org/mailman/listinfo/python-list
tried reseting password but i can not login anymore to upload my new
source code ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 5, 8:30 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> gert schrieb:
>
> > tried reseting password but i can not login anymore to upload my new
> > source code ?
>
> Please try again. It was a misconfiguration which should be fixed now.
&g
I made something that i was hoping it could make people happy enough
so i could make a living by providing support for commercial use of
http://sourceforge.net/projects/dfo/
But in reality i am a lousy sales men and was wondering how you people
sell stuff as a developer ?
--
http://mail.python.o
On May 26, 2:09 am, Paul McNett <[EMAIL PROTECTED]> wrote:
> gert wrote:
> > I made something that i was hoping it could make people happy enough
> > so i could make a living by providing support for commercial use of
> >http://sourceforge.net/projects/dfo/
>
> &g
On Mar 2, 8:33 am, "gert" <[EMAIL PROTECTED]> wrote:
> On Mar 2, 7:33 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>
> > In <[EMAIL PROTECTED]>, gert wrote:
> > > I was thinking about making a column module that names the
http://sourceforge.net/projects/dfo/
Added some firefox2 ajax technologies to it and made it xhtml 1.1
valid :)
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 2, 12:31 pm, gert <[EMAIL PROTECTED]> wrote:
> On Nov 2, 12:27 pm, Boris Borcic <[EMAIL PROTECTED]> wrote:
>
>
>
> > gert wrote:
> > > class Test(object):
>
> > > def execute(self,v):
> > > return v
>
>
On Nov 2, 12:27 pm, Boris Borcic <[EMAIL PROTECTED]> wrote:
> gert wrote:
> > class Test(object):
>
> > def execute(self,v):
> > return v
>
> > def escape(v):
> > return v
>
> > if __name__ == '__main__'
On Nov 2, 1:48 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-11-02 at 12:24 +0000, gert wrote:
> > I want to escape binary data so i can insert data into a blob
>
> No, you don't want to escape binary data. You want to bind it to a
>
On Nov 2, 4:04 pm, Boris Borcic <[EMAIL PROTECTED]> wrote:
> gert wrote:
> > Could not one of you just say "@staticmethod" for once damnit :)
>
> I did, did I not ?
i am sorry, yes you did :)
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 2, 2:10 pm, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
> Bjoern Schliessmann wrote:
> > gert wrote:
> >> Could not one of you just say "@staticmethod" for once damnit :)
>
> > No, since everyone's crystal balls are in repair.
>
>
I want to escape binary data so i can insert data into a blob
Using MySQLdb.string_literal(data) doesn't seem to escape everything ?
--
http://mail.python.org/mailman/listinfo/python-list
class Test(object):
def execute(self,v):
return v
def escape(v):
return v
if __name__ == '__main__':
gert = Test()
print gert.m1('1')
print Test.m2('2')
Why doesn't this new style class work in python 2.5.1 ?
--
http
Could not one of you just say "@staticmethod" for once damnit :)
--
http://mail.python.org/mailman/listinfo/python-list
import string
import random
import PIL
from PIL import Image, ImageFont, ImageDraw
from PIL import ImageEnhance, ImageOps, ImageStat
from StringIO import StringIO
import os
pwd = os.path.dirname(os.path.abspath(__file__))
fpath=os.path.join(pwd,'img.ttf')
iname=os.path.join(pwd,'pass.jpg')
def ge
On Feb 28, 12:13 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> gert wrote:
> > [EMAIL PROTECTED]:~/Desktop/svn/xhtml$ python2.5 textimg.py
> > Traceback (most recent call last):
> > File "textimg.py", line 27, in
> > print gen()
> > File
Anybody can tell me what i need to import to make urlDecode() work in
python2.5 please.
import urllib
urllib.urlDecode(post) #doesn't exist
urllib.urldecode(post) #doesn't exist
urldecode(post)#doesn't exist
urlDecode(post) #doesn't exist
--
http://mail.python.org/mailm
import re
def htc(m):
return chr(int(m.group(1),16))
def urldecode(url):
rex=re.compile('%([0-9a-hA-H][0-9a-hA-H])',re.M)
return rex.sub(htc,url)
if __name__ == '__main__':
print urldecode('adasasdasd%20asdasdasdas')
Ok thats it enough googeling around i make one my self :)
--
On Mar 1, 1:40 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Wed, 28 Feb 2007 22:45:40 -0300, gert <[EMAIL PROTECTED]> escribió:
>
> > import re
>
> > def htc(m):
> > return chr(int(m.group(1),16))
>
> > def urldecode(url
Anybody who is interested in a sql client with a html interface
http://sourceforge.net/projects/dfo/
db7 is for python based on cherrypy, code is straightforward and easy
to modify so it can work with other sql databases.
db5 was before i knew pyhton :)
Suggestions very welcome about what to do
On Mar 2, 7:33 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, gert wrote:
> > I was thinking about making a column module that names the columns, i
> > was hoping there would be some sort of api feature that already exist
can my http://appwsgi.googlecode.com/ be on the http://wsgi.org/ page
somewhere please :)
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 15, 8:23 am, Stephan Diehl <[EMAIL PROTECTED]> wrote:
> gert wrote:
> > can myhttp://appwsgi.googlecode.com/be on thehttp://wsgi.org/page
> > somewhere please :)
>
> you are free to register yourself on wsgi.org and put a link to your
> software at the appropr
what is the difference between iter(lambda:f.read(8192), ') and
iter(f.read(8192),'') ?
--
http://mail.python.org/mailman/listinfo/python-list
aha ok got it :)
--
http://mail.python.org/mailman/listinfo/python-list
Would anybody explain to me what needs to be done to have a DB-API 2.0
layer for this ?
And how many lines of code we are talking ?
http://httpd.apache.org/docs/2.2/mod/mod_dbd.html
--
http://mail.python.org/mailman/listinfo/python-list
I need something to connect to a database, preferably mysql, that
works in python3.0 please.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 12, 8:25 pm, "Daniel Fetchinson"
wrote:
> > I need something to connect to a database, preferably mysql, that
> > works in python3.0 please.
>
> And your question is?
MySQLdb or something else for python3.0 ?
--
http://mail.python.org/mailman/listinfo/python-list
Its for testing mod_wsgi trunk on Python3.0 in combination with a
database. Does anybody has a patch for MySQLdb ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 13, 1:36 pm, gkc...@gmail.com wrote:
> Hello,
> I want to contribute to the open source projects.
Open source is about finding where you are good at. Contributing is a
product of the skills you learn.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 13, 11:58 pm, "Martin v. Löwis" wrote:
> Steve Holden wrote:
> > Daniel Fetchinson wrote:
> >>> I need something to connect to a database, preferably mysql, that
> >>> works in python3.0 please.
> >> And your question is?
>
> > Surely it's fairly obvious that the question is "does such a th
from random import random
from hashlib import sha1
s = sha1(random()).hexdigest()
TypeError: object supporting the buffer API required,
How does sha1 work in python3.0 please ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 16, 1:14 am, gert wrote:
> from random import random
> from hashlib import sha1
> s = sha1(random()).hexdigest()
>
> TypeError: object supporting the buffer API required,
>
> How does sha1 work in python3.0 please ?
s = sha1(bytes(random(),'utf-8')).hexdi
On Jan 16, 1:20 am, Paul Rubin <http://phr...@nospam.invalid> wrote:
> gert writes:
> > s = sha1(random()).hexdigest()
>
> > TypeError: object supporting the buffer API required,
>
> > How does sha1 work in python3.0 please ?
>
> sha1 hashes strings, not num
except sqlite3.Error as e:
ERROR = "Error " + ...
how does except work in python3 ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 16, 1:47 am, gert wrote:
> except sqlite3.Error as e:
> ERROR = "Error " + ...
>
> how does except work in python3 ?
except sqlite3.Error as e:
ERROR = "Error " + e.args[0]
oops i thought it did not work somehow in 3.0 but it does :)
--
http://
On Jan 16, 7:08 am, "Martin v. Löwis" wrote:
> > s = urandom(10).encode('hex')
>
> > AttributeError: 'bytes' object has no attribute 'encode'
>
> py> binascii.hexlify(os.urandom(10))
> b'92b91d5734a9fe562f23'
>
sqlite3
s = hexlify(urandom(10))
db.execute('SELECT sid FROM sessions WHERE sid=?
On Jan 17, 1:14 am, gert wrote:
> On Jan 16, 7:08 am, "Martin v. Löwis" wrote:
>
> > > s = urandom(10).encode('hex')
>
> > > AttributeError: 'bytes' object has no attribute 'encode'
>
> > py> binascii.hexlify(os.u
On Jan 17, 9:08 pm, "Martin v. Löwis" wrote:
> > I expected that py3 did not converted the b'...' indication too ?
>
> > b'afc76815e3fc429fa9d7'
>
> You mean, just because you invoked the ascii() builtin, the b
> prefix should disappear? Re-read the documentation of the
> ascii() builtin - it prob
On Jan 18, 12:05 am, "Martin v. Löwis" wrote:
> gert wrote:
> > On Jan 17, 9:08 pm, "Martin v. Löwis" wrote:
> >>> I expected that py3 did not converted the b'...' indication too ?
> >>> b'afc76815e3fc429fa9d7'
> >>
On Jan 18, 12:20 am, "Martin v. Löwis" wrote:
> >>> s = str(hexlify(urandom(8)))[2:18]
> >> And your question is?
>
> > No question just solution to get rit of b'' :)
>
> Ah. hexlify(urandom(8)).decode('ascii')
Ok that one looks better then mine :)
--
http://mail.python.org/mailman/listinfo/pytho
I expected that py3 did not converted the b'...' indication too ?
b'afc76815e3fc429fa9d7'
--
http://mail.python.org/mailman/listinfo/python-list
in python3.0 this does not work
File "/usr/python/lib/python3.0/email/feedparser.py", line 99, in push
data, self._partial = self._partial + data,
TypeError: Can't convert 'bytes' object to str implicitly
So what do i need to wrap around environ['wsgi.input'] so it does
work ?
--
http://mail.pyth
How do you convert s back to binary data in python 3 so I can put in a
sqlite blob ?
Is there a build in function or do I need to use binascii ?
byte(s) or bin(s) would make more sense but can not figure it out ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 20, 5:23 am, John Machin wrote:
> On Jan 20, 12:54 pm, gert wrote:
>
> > How do you convert s back to binary data in python 3 so I can put in a
> > sqlite blob ?
> > Is there a build in function or do I need to use binascii ?
> > byte(s) or bin(s) would make
On Jan 20, 9:41 pm, John Machin wrote:
> On Jan 21, 5:31 am, gert wrote:
>
> > On Jan 20, 5:23 am, John Machin wrote:
>
> > > On Jan 20, 12:54 pm, gert wrote:
>
> > > > How do you convert s back to binary data in python 3 so I can put in a
> >
b = environ['CONTENT_TYPE'].split('boundary=')[1]
oops forgot, is indeed better solution :)
--
http://mail.python.org/mailman/listinfo/python-list
raise ValueError(errmsg("Expecting property name", s, end))
http://docs.python.org/library/json.html
What am I doing wrong ?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 25, 11:16 pm, Дамјан Георгиевски wrote:
> > raise ValueError(errmsg("Expecting property name", s, end))
> >http://docs.python.org/library/json.html
> > What am I doing wrong ?
>
> try this
> v = json.loads('{"test":"test"}')
>
> JSON doesn't support single quotes, only double quotes.
the f
On Jan 25, 11:51 pm, "Diez B. Roggisch" wrote:
> gert schrieb:
>
> > On Jan 25, 11:16 pm, Дамјан Георгиевски wrote:
> >>> raise ValueError(errmsg("Expecting property name", s, end))
> >>>http://docs.python.org/library/json.html
> &g
On Jan 26, 12:40 am, "Diez B. Roggisch" wrote:
> >> But all of this is not JSON.
>
> > Yes it is, you just make it more python dictionary compatible :)
>
> No, what you do is to make it more incompatible with other
> json-implementations. Which defies the meaning of a standard.
>
> Besides, {foo :
After reading the docs and seeing a few examples i think this should
work ?
Am I forgetting something here or am I doing something stupid ?
Anyway I see my yellow screen, that has to count for something :)
from tkinter import *
from threading import Thread
class Weegbrug(Thread):
def __init__
On Feb 18, 8:25 am, "Hendrik van Rooyen" wrote:
> "gert" wrote:
>
> > After reading the docs and seeing a few examples i think this should
> > work ?
> > Am I forgetting something here or am I doing something stupid ?
> > Anyway I see
Can you first explain why x stay's 0 please and how i should update x
using threads ?
from tkinter import *
from _thread import start_new_thread
from time import sleep
x=0
def weegbrug(x):
while True:
x=x+1
sleep(0.5)
start_new_thread(weegbrug,(x,))
root = Tk()
v = StringVar(
On Feb 19, 3:20 am, Steve Holden wrote:
> gert wrote:
> > Can you first explain why x stay's 0 please and how i should update x
> > using threads ?
>
> > fromtkinterimport *
> > from _thread import start_new_thread
> > from time import sleep
>
>
Hope you do not mind ignoring part of answers, so I can figure out
more why things work the way they are.
This two examples work, what i do not understand is that in function
display i do not have to declare root, v or x ?
--
example 1
--
from tkinter import *
from _thread import s
On Mar 6, 7:42 pm, a...@pythoncraft.com (Aahz) wrote:
> [posted and e-mailed -- please reply to the group]
>
> In article
> <492d5db9-3681-4ae8-827e-f2a4f66be...@v39g2000yqm.googlegroups.com>,
>
> gert wrote:
>
> >After reading the docs and seeing a few exa
Testing 3.1 i get this with 3.0 it works
python/lib/python3.1/sqlite3/dbapi2.py", line 27, in ,
ImportError:No module named _sqlite3,
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 9, 8:31 pm, gert wrote:
> Testing 3.1 i get this with 3.0 it works
>
> python/lib/python3.1/sqlite3/dbapi2.py", line 27, in ,
> ImportError:No module named _sqlite3,
never mind had some include problems during compiling, nothing to do
with 3.1
--
http://mail.python.org
Rename all built in classes with a capital letter
example Str() Int() Object()
Make () optional for a function definition
class Test:
pass
def test:
pass
Any chance Guido would approve this :-)
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 25, 1:23 am, Steven D'Aprano
wrote:
> On Tue, 24 Mar 2009 16:45:26 -0700, gert wrote:
> > Rename all built in classes with a capital letter example Str() Int()
> > Object()
>
> > Make () optional for a function definition class Test:
> > pass
>
On Mar 7, 9:40 am, Jani Hakala wrote:
> > After reading the docs and seeing a few examples i think this should
> > work ?
> > Am I forgetting something here or am I doing something stupid ?
> > Anyway I see my yellow screen, that has to count for something :)
>
> I have been using the following sc
from subprocess import *
check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True)
while True:
with open('com1', 'r') as f:
for line in f:
print('line')
This works very well except for one thing. After a reboot I have to
launch 1 time any windows serial exe application no mate
On Apr 2, 8:53 pm, Kushal Kumaran wrote:
> On Thu, 2 Apr 2009 10:01:02 -0700 (PDT)
>
>
>
> gert wrote:
> > from subprocess import *
>
> > check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True)
> > while True:
> > with open('
On Apr 3, 3:44 pm, "Gabriel Genellina" wrote:
> En Thu, 02 Apr 2009 20:04:14 -0300, gert escribió:
>
> > On Apr 2, 8:53 pm, Kushal Kumaran wrote:
> >> On Thu, 2 Apr 2009 10:01:02 -0700 (PDT)
> >> gert wrote:
> >> > from subprocess import *
&
On Apr 4, 12:58 am, Lawrence D'Oliveiro wrote:
> In message <8bc55c05-19da-41c4-
>
> b916-48e0a4be4...@p11g2000yqe.googlegroups.com>, gert wrote:
> > with open('com1', 'r') as f:
> > for line in f:
> > print(
On Apr 3, 10:10 pm, Christian Heimes wrote:
> gert wrote:
> > I do understand, and I went looking into pySerial, but it is a long
> > way from getting compatible with python3.x and involves other libs
> > that are big and non pyhton3.x compatible.
>
> So don't
On Apr 4, 5:20 pm, Kushal Kumaran wrote:
> On Fri, 03 Apr 2009 22:10:36 +0200
>
> Christian Heimes wrote:
> > gert wrote:
> > > I do understand, and I went looking into pySerial, but it is a long
> > > way from getting compatible with python3.x and involves othe
On Apr 5, 12:24 am, "Gabriel Genellina"
wrote:
> En Sat, 04 Apr 2009 14:11:12 -0300, gert escribió:
>
> > On Apr 4, 5:20 pm, Kushal Kumaran wrote:
> >> On Fri, 03 Apr 2009 22:10:36 +0200
> >> Christian Heimes wrote:
> >> > gert wrote:
> &
I would like to read the following from a text file
from json import loads
from gert.db import Db
def application(environ, response):
v = loads(environ['wsgi.input'].read(int(environ
['CONTENT_LENGTH'])).decode('utf-8'))
db = Db()
db.execute('UPDATE votes SET count=count+1 WHERE vid=?'
On May 2, 10:25 am, Arnaud Delobelle wrote:
> gert writes:
> > I would like to read the following from a text file
>
> > from json import loads
> > from gert.db import Db
> > def application(environ, response):
> > v = loads(environ['wsgi.inpu
Aldo i like the cerrypy wsgi server very much, i do not like the tools
that go with it
so i am stuck with a configuration file that looks like this
http://pastebin.com/m4d8184bc
After 152 line I finally arrived to a point where i was thinkig "thats
it, this is like going to work on a uni cycle an
On May 2, 10:44 pm, gert wrote:
> Aldo i like the cerrypy wsgi server very much, i do not like the tools
> that go with it
> so i am stuck with a configuration file that looks like this
>
> http://pastebin.com/m4d8184bc
>
> After 152 line I finally arrived to a point where
On May 2, 10:58 pm, gert wrote:
> On May 2, 10:44 pm, gert wrote:
>
> > Aldo i like the cerrypy wsgi server very much, i do not like the tools
> > that go with it
> > so i am stuck with a configuration file that looks like this
>
> >http://pastebin.com/m4d8184
On May 2, 2:15 pm, Дамјан Георгиевски wrote:
> >> > How do I do this in python3?
>
> >> What's wrong with importing it?
>
> > The problem is that my wsgi files have a wsgi extention for mod_wsgi
> > use
> ..
> > mod_wsgi has a .wsgi handler because it is recommended to rename the
> > wsgi file wit
On May 3, 12:17 am, gert wrote:
> On May 2, 10:58 pm, gert wrote:
>
>
>
> > On May 2, 10:44 pm, gert wrote:
>
> > > Aldo i like the cerrypy wsgi server very much, i do not like the tools
> > > that go with it
> > > so i am stuck with a con
I am trying to do this in a single transaction, the 3 separate
statements work fine, but i am screwed if they are not executed
together.
### db.execute('BEGIN') #
db.execute('UPDATE users SET uid=? WHERE uid=?',(v['uid'],s.UID))
db.execute('UPDATE sessions SET uid=? WHERE si
On 11 mei, 23:07, Rob Williscroft wrote:
> gert wrote in news:d7591495-4661-4243-ad7e-f142d8244e88
> @e24g2000vbe.googlegroups.com in comp.lang.python:
>
> > I am trying to do this in a single transaction, the 3 separate
> > statements work fine, but i am screwed if
open(os.path.join(os.path.dirname(__file__),'../www/bin/picture.png'),
'rb')
how do you do this on windows (py3) so it still works on linux ?
--
http://mail.python.org/mailman/listinfo/python-list
On May 16, 3:16 pm, "Diez B. Roggisch" wrote:
> gert schrieb:
>
> > open(os.path.join(os.path.dirname(__file__),'../www/bin/picture.png'),
> > 'rb')
> > how do you do this on windows (py3) so it still works on linux ?
>
> os.path.join(&q
On May 16, 3:40 pm, gert wrote:
> On May 16, 3:16 pm, "Diez B. Roggisch" wrote:
>
> > gert schrieb:
>
> > > open(os.path.join(os.path.dirname(__file__),'../www/bin/picture.png'),
> > > 'rb')
> > > how do you do this on
I am trying to figure out how to join two selects ?
SELECT * FROM search
SELECT eid, SUM(pnt) AS total_votes FROM vote
CREATE TABLE votes (
eid INTEGER PRIMARY KEY,
uid VARCHAR(64),
pnt INETEGER DEFAULT 0,
);
CREATE TABLE search (
eid INTEGER PRIMARY KEY,
txt VARCHAR(64)
On May 21, 4:54 pm, Tim Golden wrote:
> gert wrote:
> > I am trying to figure out how to join two selects ?
>
> > SELECT * FROM search
> > SELECT eid, SUM(pnt) AS total_votes FROM vote
>
> > CREATE TABLE votes (
> > eid INTEGER PRIMARY KEY,
> >
This works but after the su command you have to wait like 2 minutes
before each command gets executed ?
What did i do wrong ?
import pxssh
try:
s = pxssh.pxssh()
s.login ('127.0.0.1', 'gert', '123')
s.sendline (
On Jun 29, 1:19 am, Neil Hodgson <[EMAIL PROTECTED]>
wrote:
> gert:
>
> > This works but after the su command you have to wait like 2 minutes
> > before each command gets executed ?
> > s.sendline ('su')
> > s.expect('Pas
On Jun 29, 1:44 am, gert <[EMAIL PROTECTED]> wrote:
> On Jun 29, 1:19 am, Neil Hodgson <[EMAIL PROTECTED]>
> wrote:
>
> > gert:
>
> > > This works but after the su command you have to wait like 2 minutes
> > > before each command g
print child.before
child.sendline('ls -l')
child.expect('[EMAIL PROTECTED]:')
print child.before
child.sendline('su')
child.expect('assword:')
child.sendline('123')
child.expect('[EMAIL PROTECTED]: /srv/www/gert')
print child.before
child.sendline('ls -l')
child.expect('[EMAIL PROTECTED]:')
print child.before
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 29, 4:45 am, Dan Stromberg <[EMAIL PROTECTED]> wrote:
> On Sat, 28 Jun 2008 19:08:59 -0700, gert wrote:
> > this does the same except 100 times faster ?
>
> > I don't understand the logic about the prompt, its not the same as the
> > output from the
Is this the best way to use ssh ?
How can i use ssh keys instead of passwords ?
I dont understand what happens when pid does not equal 0 , where does
the cmd get executed when pid is not 0 ?
How do you close the connection ?
# http://mail.python.org/pipermail/python-list/2002-July/155390.html
impo
Eric Wertman wrote:
>
>from popen2 import Popen3
>
>def ssh(host,command) :
>''' Wraps ssh commands '''
>ssh_exec = ['/usr/bin/ssh -qnx -F ssh_config', host, command]
>cmd = ' '.join(ssh_exec)
>output,errors,status = process(cmd)
>return output,errors,status
>
>def process(cmd)
http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/order.wsgi
I screwed up some sql statement
INSERT INTO orders (pid,uid,bid,time) VALUES (?,?,2,DATETIME('NOW'))",
(v['pid']),s.UID)
bid does not exist anymore, but why does the KeyError exception occur
when only my sql statement is wron
On Oct 11, 7:48 am, Michel Alexandre Salim
wrote:
> On Oct 10, 7:59 pm, gert wrote:
>
> >http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/order.wsgi
>
> > I screwed up some sql statement
>
> > INSERT INTO orders (pid,uid,bid,time) VALUES (?,?,2,DATETIME(
sider this technique in your future projects.
|
| client request
|
| \{"cmd":"order",
| \ "sid":"bac0c1f9a9362f9e",
| \ "input":"..."}
|
| server response
|
| \{"cmd":"order",
| \ "sid":"bac0c1f9a9362f9e",
So I can make a recursive http download script
My goal is a one click instruction to install and launch my project
http://code.google.com/p/appwsgi/
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 16, 3:41 am, alex23 wrote:
> On Apr 16, 5:37 am, gert wrote:
>
> > So I can make a recursive http download script
> > My goal is a one click instruction to install and launch my
> > projecthttp://code.google.com/p/appwsgi/
>
> Here's Guido's
On Apr 17, 1:14 am, "Gabriel Genellina"
wrote:
> En Thu, 15 Apr 2010 16:37:37 -0300, gert escribió:
>
> > [a wget -r like implementation in python3]
> > So I can make a recursive http download script
>
> What about calling wget itself? subprocess.call(['wge
How do you upload a plain text .py file as a source file?
I get
Error processing form
invalid distribution file
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 29, 10:49 pm, James Mills wrote:
> On Fri, Apr 30, 2010 at 5:53 AM, gert wrote:
> > How do you upload a plain text .py file as a source file?
>
> http://lmgtfy.com/?q=python+distutils+tutorial
http://lmgtfy.com/?q=does+not+work :)
I have only access to the webpage form to
this is a non standard way to store multi part post data on disk
def application(environ, response):
with open('/usr/httpd/var/wsgiTemp','w') as f:
while True:
chunk = environ['wsgi.input'].read(8192).decode('latin1')
if not chunk: break
f.write(chun
1 - 100 of 159 matches
Mail list logo