On Jun 12, 1:23 pm, fscked <[EMAIL PROTECTED]> wrote:
> I have a text file with some network info like IP, mask, gateway, etc,
> that I want to set on a linux box. This script will run on the host
> that will be getting the new info. I can parse the data in the text
> file an
I have a text file with some network info like IP, mask, gateway, etc,
that I want to set on a linux box. This script will run on the host
that will be getting the new info. I can parse the data in the text
file and get my data in a list, but I can't figure out how to put it
in the right place of t
On May 10, 6:08 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Thu, 10 May 2007 19:04:30 -0300, fscked <[EMAIL PROTECTED]>
> escribió:
>
>
>
>
>
> > ok, I lied, it is still doing the archived folders. Here is the code:
>
> > im
On May 10, 1:43 pm, fscked <[EMAIL PROTECTED]> wrote:
> On May 10, 12:45 pm, fscked <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On May 10, 10:41 am, fscked <[EMAIL PROTECTED]> wrote:
>
> > > On May 9, 7:02 pm, "Gabriel Genellina" <[EM
On May 10, 12:45 pm, fscked <[EMAIL PROTECTED]> wrote:
> On May 10, 10:41 am, fscked <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On May 9, 7:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>
> > > En Wed, 09 May 2007 15:11:06 -0
On May 10, 10:41 am, fscked <[EMAIL PROTECTED]> wrote:
> On May 9, 7:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > En Wed, 09 May 2007 15:11:06 -0300, fscked <[EMAIL PROTECTED]>
> > escribió:
>
> > >
On May 9, 7:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Wed, 09 May 2007 15:11:06 -0300, fscked <[EMAIL PROTECTED]>
> escribió:
>
> > I am walking some directories looking for a certain filename pattern.
> > This part works fine, b
I am walking some directories looking for a certain filename pattern.
This part works fine, but what if I want to exclude results from a
certain directory being printed?
eg
d:\dir\mydir1\filename.txt <--I want to
see this one
d:\dir\mydir2\archived\filename.txt
On May 3, 9:29 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, fscked wrote:
> > The traceback is as follows:
>
> > Traceback (most recent call last):
> > File "createXMLPackage.py", line 35, in ?
>
On May 3, 9:11 am, Larry Bates <[EMAIL PROTECTED]> wrote:
> fscked wrote:
> > Anyone have an idea of what I might do to fix this? I have googled adn
> > can only find some random conversations about it that doesn't make
> > sense to me.
>
> > I am basical
Anyone have an idea of what I might do to fix this? I have googled adn
can only find some random conversations about it that doesn't make
sense to me.
I am basically reading in a csv file to create an xml and get this
error.
I don't see any empty values in any fields or anything...
--
http://ma
On May 1, 2:36 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote:
> Rob Wolfe <[EMAIL PROTECTED]> writes:
> > fscked <[EMAIL PROTECTED]> writes:
>
> >> I cannot seem to get this to work. I am hyst trying to read in a list
> >> of paths and see if the directory
I cannot seem to get this to work. I am hyst trying to read in a list
of paths and see if the directory or any sub has a filename pattern.
Here is the code:
import os, sys
from path import path
myfile = open("boxids.txt", "r")
for line in myfile.readlines():
d = path(line)
for f i
You guys have given me some great ideas, I am going to try them all
out and let you guys know how it turns out.
On a side note, thanks for nto bashing a noob like me who isn't the
greatest pythonista around. I am trying to learn and you guys are how
I learn my mistakes. Well you, and the fact the
On Apr 11, 10:26 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> fscked írta:> Trying to use CSV to read in a line with 11 fields and I keep
> getting
> > this error. I have googled a bit and have been unable to figure it out.
>
> Probably you have more than 11 values in s
Trying to use CSV to read in a line with 11 fields and I keep getting
this error. I have googled a bit and have been unable to figure it out.
--
http://mail.python.org/mailman/listinfo/python-list
Any ideas?
--
http://mail.python.org/mailman/listinfo/python-list
Here is what I currently have. Still missing prolog information and
namespace info. Encoding is irritating me also. :)
import os,sys
import csv
from elementtree.ElementTree import Element, SubElement, ElementTree,
tostring
def indent(elem, level=0):
i = "\n" + level*" "
if len(elem):
[EMAIL PROTECTED] wrote:
<---SNIP--->
> I've never done this, but I found a recipe on the ActiveState website
> that looks like it would be helpful:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/159100
I tried looking at that but couldn't figure out how to get the
property file wor
I am a beginning pythoner and I am having a terrible time trying to
figure out how to do something that (it would seeme to me) should be
fairly simple.
I have a CSV file of unknown encoding and I need to parse that file to
get the fields <--- DONE
I need to create an xml document that has the prop
How do I go about creating the XML prologue like I want it to be?
Specifically, I am trying to add encoding and some namespace stuff.
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
<...snip...>
> I find that hard to believe. There is no code in Python that does
> removal of characters, and I can't see any other reason why it gets
> removed.
>
> OTOH, what I do get when writing to a file is a UnicodeError, when
> it tries to convert the Unicode string
Martin v. Löwis wrote:
> fscked schrieb:
> > Hi guys/gals.
> >
> > I am trying to write and xml file from data parsed from a csv.
> >
> > I can get everything to work except that I cannot get minidom to do -->
> > ö which needless to say is driving me nut
Hi guys/gals.
I am trying to write and xml file from data parsed from a csv.
I can get everything to work except that I cannot get minidom to do -->
ö which needless to say is driving me nuts.
Any suggestions?
What it ends up doing is just removing the character from the
datastream.
--
http:/
24 matches
Mail list logo