Re: Coding issue with XML for word document

2017-02-07 Thread Deborah_Swanson
From: "Deborah Swanson" 

I don't see any Python in your code. The python.org list isn't generally
familiar with Microsoft proprietary code, which is often quite different from
other versions. Try asking this question in Microsoft's Office/Word Document
forums. Good luck!


accessnew...@gmail.com wrote, on February 06, 2017 5:00 PM Subject: Coding
issue with XML for word document
>
>
> I am constructing a sentence to insert into a word xml
> template. My code is below
>
> 
> #Create a list
>
> if len(myList) > 0:
> if len(myList) > 1:
> testText = list_format(myList) + " dealers."
> else:
> myText = myList[0] + " dealer."
>
> #Contruct sentence
>
> #myBlurb = "My
> Favorite Cars -  My favorite cars are
> available at "  + myText + ""
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
> else:
> myBlurb = ""
>
>
> ---
>
> If a list exists (not = 0) Then
>
> I am trying to get the following output:
>
> My Favorite Cars - My favorite cars are available at (list of
> dealers) dealers.
>
> There is a newline above and below this line. The first three
> words and the dash are bold. All other words are regular.
>
> This works
>
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
>
> But when I try to bold, it bombs. It does not seem to like
> either of these (+ myText + "") (separately or
> together) appended on the end.
>
> Thia does not work
>
> myBlurb = "My Favorite
> Cars -  My favorite cars are available
> at "  + myText + "
>
> What am I missing here?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Coding issue with XML for word document

2017-02-07 Thread Deborah_Swanson
From: Deborah_Swanson@f38.n261.z1

From: "Deborah Swanson" 

I don't see any Python in your code. The python.org list isn't generally
familiar with Microsoft proprietary code, which is often quite different from
other versions. Try asking this question in Microsoft's Office/Word Document
forums. Good luck!


accessnew...@gmail.com wrote, on February 06, 2017 5:00 PM Subject: Coding
issue with XML for word document
>
>
> I am constructing a sentence to insert into a word xml
> template. My code is below
>
> 
> #Create a list
>
> if len(myList) > 0:
> if len(myList) > 1:
> testText = list_format(myList) + " dealers."
> else:
> myText = myList[0] + " dealer."
>
> #Contruct sentence
>
> #myBlurb = "My
> Favorite Cars -  My favorite cars are
> available at "  + myText + ""
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
> else:
> myBlurb = ""
>
>
> ---
>
> If a list exists (not = 0) Then
>
> I am trying to get the following output:
>
> My Favorite Cars - My favorite cars are available at (list of
> dealers) dealers.
>
> There is a newline above and below this line. The first three
> words and the dash are bold. All other words are regular.
>
> This works
>
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
>
> But when I try to bold, it bombs. It does not seem to like
> either of these (+ myText + "") (separately or
> together) appended on the end.
>
> Thia does not work
>
> myBlurb = "My Favorite
> Cars -  My favorite cars are available
> at "  + myText + "
>
> What am I missing here?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Coding issue with XML for word document

2017-02-08 Thread Deborah_Swanson
From: "Deborah Swanson" 

Cute, whoever you are. Very cute. (I know how to sign up for fake email
addresses too.)

> -Original Message-
> From: Python-list
> [mailto:python-list-bounces+python=deborahswanson.net@python.o
> rg] On Behalf Of Deborah_Swanson@f38.n261.z1
> Sent: Monday, February 06, 2017 9:52 AM
> To: python-list@python.org
> Subject: Re: Coding issue with XML for word document
>
>
> From: "Deborah Swanson" 
>
> I don't see any Python in your code. The python.org list
> isn't generally familiar with Microsoft proprietary code,
> which is often quite different from other versions. Try
> asking this question in Microsoft's Office/Word Document
> forums. Good luck!
>
>
> accessnew...@gmail.com wrote, on February 06, 2017 5:00 PM
> Subject: Coding issue with XML for word document
> >
> >
> > I am constructing a sentence to insert into a word xml template. My
> > code is below
> >
> > 
> > #Create a list
> >
> > if len(myList) > 0:
> > if len(myList) > 1:
> > testText = list_format(myList) + " dealers."
> > else:
> > myText = myList[0] + " dealer."
> >
> > #Contruct sentence
> >
> > #myBlurb = "My
> > Favorite Cars -  My favorite cars are
> available
> > at "  + myText + ""
> > myBlurb = "My Favorite Cars - My favorite cars are
> > available at " + myText + ""
> > else:
> > myBlurb = ""
> >
> >
> > ---
> >
> > If a list exists (not = 0) Then
> >
> > I am trying to get the following output:
> >
> > My Favorite Cars - My favorite cars are available at (list of
> > dealers) dealers.
> >
> > There is a newline above and below this line. The first three words
> > and the dash are bold. All other words are regular.
> >
> > This works
> >
> > myBlurb = "My Favorite Cars - My favorite cars are
> available at
> > " + myText + ""
> >
> > But when I try to bold, it bombs. It does not seem to like
> either of
> > these (+ myText + "") (separately or
> > together) appended on the end.
> >
> > Thia does not work
> >
> > myBlurb = "My Favorite Cars -
> >  My favorite cars are available at
> "
> > + myText + "
> >
> > What am I missing here?
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Coding issue with XML for word document

2017-02-08 Thread Deborah_Swanson
From: Deborah_Swanson@f38.n261.z1

From: Deborah_Swanson@f38.n261.z1

From: "Deborah Swanson" 

I don't see any Python in your code. The python.org list isn't generally
familiar with Microsoft proprietary code, which is often quite different from
other versions. Try asking this question in Microsoft's Office/Word Document
forums. Good luck!


accessnew...@gmail.com wrote, on February 06, 2017 5:00 PM Subject: Coding
issue with XML for word document
>
>
> I am constructing a sentence to insert into a word xml
> template. My code is below
>
> 
> #Create a list
>
> if len(myList) > 0:
> if len(myList) > 1:
> testText = list_format(myList) + " dealers."
> else:
> myText = myList[0] + " dealer."
>
> #Contruct sentence
>
> #myBlurb = "My
> Favorite Cars -  My favorite cars are
> available at "  + myText + ""
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
> else:
> myBlurb = ""
>
>
> ---
>
> If a list exists (not = 0) Then
>
> I am trying to get the following output:
>
> My Favorite Cars - My favorite cars are available at (list of
> dealers) dealers.
>
> There is a newline above and below this line. The first three
> words and the dash are bold. All other words are regular.
>
> This works
>
> myBlurb = "My Favorite Cars - My favorite cars are
> available at " + myText + ""
>
> But when I try to bold, it bombs. It does not seem to like
> either of these (+ myText + "") (separately or
> together) appended on the end.
>
> Thia does not work
>
> myBlurb = "My Favorite
> Cars -  My favorite cars are available
> at "  + myText + "
>
> What am I missing here?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
https://mail.python.org/mailman/listinfo/python-list