[Tutor] python web development

2013-12-23 Thread Ismar Sehic
hello everyone, i just got myself a nice vps box, and i want to play with it for a while, set it up for web development with python.i just need few guidelines, what should i take care of, what packages to install etc... ___ Tutor maillist - Tutor@python

[Tutor] (no subject)

2013-12-05 Thread Ismar Sehic
Ismar, the following don't look like Python lists to me. It's not clear which bits are supposed to be from the Python list, which bits are comments you have added. In your first example, it looks to me like one int (3628), followed by a list of longints, [36L, 317L], followed by perhaps a string "r

[Tutor] Fwd: question about lists

2013-12-04 Thread Ismar Sehic
hello, good people. i have a pretty urgent question.the situation is like this, i have following lists, as results of numerous psycopg2 queries, here are two examples : for one hotel, id 3628 : 3628 [36L, 317L] - room type id ['DBP', 'DS5'] - room names [Decimal('10.00'), Decimal('17.00'), Dec

[Tutor] python, xml, mongodb

2013-10-24 Thread Ismar Sehic
hello, me again - the guy with a (mis)fortune of having to deal with a lot of company's in and outgoing xml.I guess they just like xml as a data interchange format, its human readable.i've done my task of exporting the entire postgresql database to some prestructured xml, and i guess i've done the

[Tutor] export postgresql to unified, templated xml

2013-10-23 Thread Ismar Sehic
Hello all.i have a quite big task, but i have a feeling it could be easily solved using python. The thing is, i need to export the whole company DB(Postgresql) to an XML template provided by another company. the template looks like this(just a fragment) : ?xml version="1.0" encoding="utf-8"?>

Re: [Tutor] Tutor Digest, Vol 116, Issue 4

2013-10-01 Thread Ismar Sehic
it would mask any attempt to > use CTRL-C to halt a rouge program that's inadvertantly gone into an > infinite loop. An obvious one to use here could be the given > sqlite3.OperationalError. Common problems that are caught include > NameError, IndexError and ScrewedUpCompletelyEr

[Tutor] soappy, soap, xml ..fuss

2013-10-01 Thread Ismar Sehic
hello, it's me again with my stubborn soap and xml request.please take a look at this code and the output, just tell if i'm missing something - i don't get it. > code > ''' > Created on 30.09.2013 > > @author: i.sehic > ''' > import SOAPpy > from xml.etree.ElementTree import Element, SubEle

[Tutor] Suds, Lxml - sending an xml request

2013-09-23 Thread Ismar Sehic
i'm probably very annoying and boring with these python web service :)and sorry for the previous message reply subject,wont happen again... the thing is, i'm provided with some service provider documentation, including xml request example, xml response example, wsdl file for the protocol defintion,

Re: [Tutor] Tutor Digest, Vol 115, Issue 35

2013-09-19 Thread Ismar Sehic
n Thu, Sep 19, 2013 at 1:43 PM, Ismar Sehic wrote: > I'm especially interested in SOAP and XMLRPC, for now. > > > On Thu, Sep 19, 2013 at 11:24 AM, wrote: > >> Send Tutor mailing list submissions to >> tutor@python.org >> >> To subsc

Re: [Tutor] Tutor Digest, Vol 115, Issue 35

2013-09-19 Thread Ismar Sehic
- > > Message: 1 > Date: Wed, 18 Sep 2013 17:55:34 +0100 > From: Alan Gauld > To: tutor@python.org > Subject: Re: [Tutor] Web Services with python > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 18/09/13

[Tutor] Web Services with python

2013-09-18 Thread Ismar Sehic
Hello, can someone point me to some good guality resources to learn Web Services with Python?with some exaples, tutorials, exercises and such. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/m

Re: [Tutor] Tutor Digest, Vol 115, Issue 6

2013-09-04 Thread Ismar Sehic
the person managing the list at > tutor-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tutor digest..." > > > Today's Topics: > >1. os.system vs subprocess.Popen args problems (l

[Tutor] help with postgreSQL and .csv

2013-09-02 Thread Ismar Sehic
hello. i wrote the following code, to insert some values from a csv file to my postgres table : *** *import psycopg2* *conn = psycopg2.connect("host = ***.***.***.*** user=*** dbname = ** ")* *cur = conn.cursor()* *import csv* *with open('HotelImages.csv', 'rb') as f: * *

[Tutor] XMLRPC question

2013-08-29 Thread Ismar Sehic
Hello, I should write a python script(s) that listens to an existing XMLRPC service on my company's dev server.My utility should take some data from that XMLRPC, send it to an online xml service provider(it's something about hotel accomodation, where they have xml patterns for different requests),