Re: parse xml

2010-10-15 Thread kostia
Give me the answer and do what you want. On Oct 15, 8:45 pm, Alex Gaynor wrote: > On Fri, Oct 15, 2010 at 1:38 PM, kostia wrote: > > I have xml file: > > > > > >        5 > > > > > I want to get the value of n (= 5) inside my python

parse xml

2010-10-15 Thread kostia
I have xml file: 5 I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc = xml.dom.minidom.parseString("boolean_width.xml") n = doc.getElementsByTagName("root")[0].firstChild.nodeValue.strip() pr

Re: Python Sort

2010-07-23 Thread kostia
Ok, I was registered already in django-users, but suddenly was gotten out. Why? So I decided to break the rule. On Jul 23, 4:00 pm, Karen Tracey wrote: > Please don't cross-post the same message to both django-users and > django-developers. This question belongs on django-users. > > Karen -- Yo

Python Sort

2010-07-23 Thread kostia
Hi everybody, I have 3 models: built-in User model, class Project(models.Model): author = models.ForeignKey(User, verbos_name=_('Author'), related_name='projects') title = models.charField(_('Title'), max_length=150) class Vote(models.Model): project = models.ForeignKey(Project, ver