Re: Don't Want Visitor To See Nuttin'

2011-03-14 Thread Ian Kelly
On Fri, Mar 11, 2011 at 10:40 AM, Victor Subervi
victorsube...@gmail.com wrote:
 Um...just for the record, these guys have ben featured on the FRONT PAGES
 OF:
 [SNIPPED]

I don't care if the company was founded by the second coming of Jesus
Christ; I just call it like I see it.

 They're ligit :)

Oh, I have no doubt that the tour is real.  I'm sure that it will be
conducted exactly as they describe it, and due to confirmation bias
and the highly subjective nature of global transformation, I'm even
willing to bet that the participants will return home satisfied and
convinced that they have taken part in some cosmically important
historical event.  The easiest people to take advantage of are the
ones who don't even realize they've been swindled.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-13 Thread alex23
Ian Kelly ian.g.ke...@gmail.com wrote:
 Yow.  You're designing a Maya 2012 website to help some travel company
 bilk gullible people out of thousands of dollars?  I would be ashamed
 to have anything to do with this.

To be fair, he _does_ appear to be bilking the company out of
thousands of dollars by pretending to be a professional web developer,
so maybe there's a karmic balance angle here I hadn't considered :)

So hard to stay mad at anyone helping to immanentize the eschaton!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-11 Thread Victor Subervi
On Fri, Mar 11, 2011 at 3:54 AM, Ian Kelly ian.g.ke...@gmail.com wrote:

 On Wed, Mar 9, 2011 at 2:01 PM, Victor Subervi victorsube...@gmail.com
 wrote:
  titleMaya 2012: Transform At the Source/title

 Yow.  You're designing a Maya 2012 website to help some travel company
 bilk gullible people out of thousands of dollars?  I would be ashamed
 to have anything to do with this.


Um...just for the record, these guys have ben featured on the FRONT PAGES
OF:
The Wall Street Journal
The Los Angeles Times
The San Francisco Chronicle
and have appeared on:
Eye-To-Eye with Connie Chung
CNN's Travel Guide
and National Geographic's Travel Magazine called them the graddaddy of
metaphysical tours.
If you'll go to the About Us page you'll see their photo with the Dalai
Lama.

They're ligit :)
Beno
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-11 Thread Victor Subervi
On Fri, Mar 11, 2011 at 4:26 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote:

 On Thu, 10 Mar 2011 18:00:10 -0800 (PST), alex23 wuwe...@gmail.com
 declaimed the following in gmane.comp.python.general:

  He's comp.lang.python's version of Sisyphus. Or maybe Sisyphus'
  boulder...I forget where I was going with this.

 The boulder -- given that we are the ones suffering... G


OK, fine, don't respond. The page works. I'm changing names and email
addresses. CU as someone else.
Bye,
Beno
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-10 Thread Victor Subervi
On Wed, Mar 9, 2011 at 5:33 PM, Ian hobso...@gmail.com wrote:

 On 09/03/2011 21:01, Victor Subervi wrote:

 The problem is that it prints Content-Type: text/html to the screen

 If you can see what is intended to be a header, then it follows that you
 are not sending the header correctly.

 Sorry - can't tell you how to send a header. You don't say what framework
 you are using.


Framework? Python on CentOS, if that's what you're asking. From what I know
of python, one always begins a web page with something like this:

  print Content-Type: text/html
  print
  print '''
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head

and this has worked in the past, so I'm surprised it doesn't work here.
Don't understand what I've done wrong, nor why it prints the first line to
screen.
TIA,
Beno
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-10 Thread Benjamin Kaplan
On Thu, Mar 10, 2011 at 6:48 PM, Victor Subervi victorsube...@gmail.com wrote:
 On Wed, Mar 9, 2011 at 5:33 PM, Ian hobso...@gmail.com wrote:

 On 09/03/2011 21:01, Victor Subervi wrote:

 The problem is that it prints Content-Type: text/html to the screen

 If you can see what is intended to be a header, then it follows that you
 are not sending the header correctly.

 Sorry - can't tell you how to send a header. You don't say what framework
 you are using.

 Framework? Python on CentOS, if that's what you're asking. From what I know
 of python, one always begins a web page with something like this:

   print Content-Type: text/html
   print
   print '''
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html
 head

 and this has worked in the past, so I'm surprised it doesn't work here.
 Don't understand what I've done wrong, nor why it prints the first line to
 screen.
 TIA,
 Beno


Typically, people developing web applications use a framework such as
Django or TurboGears (or web.py or CherryPy or any of a dozen others)
rather than just having the CGI scripts print stuff out. Rather than
having your Python script just print out a page, you make a template
and then have a templating engine fill in the blanks with the values
you provide. They'll also protect you from things like Injection
attacks and cross-site scripting (if you don't know what those are,
you're probably vulnerable to them).
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-10 Thread Victor Subervi
On Thu, Mar 10, 2011 at 8:50 PM, Benjamin Kaplan
benjamin.kap...@case.eduwrote:

print Content-Type: text/html
print
print '''
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html
  head
 
  and this has worked in the past, so I'm surprised it doesn't work here.
  Don't understand what I've done wrong, nor why it prints the first line
 to
  screen.
  TIA,
  Beno
 

 Typically, people developing web applications use a framework such as
 Django or TurboGears (or web.py or CherryPy or any of a dozen others)
 rather than just having the CGI scripts print stuff out. Rather than
 having your Python script just print out a page, you make a template
 and then have a templating engine fill in the blanks with the values
 you provide. They'll also protect you from things like Injection
 attacks and cross-site scripting (if you don't know what those are,
 you're probably vulnerable to them).

 ok. I'm looking into Django. I'm ok for injections and I think most of my
data is sanitized. Now, can someone please address my question? See above.
TIA,
Beno
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-10 Thread alex23
Benjamin Kaplan benjamin.kap...@case.edu wrote:
 Typically, people developing web applications use a framework such as
 Django or TurboGears (or web.py or CherryPy or any of a dozen others)
 rather than just having the CGI scripts print stuff out.

You're fighting an uphill battle with that suggestion, it's been made
many, _many_ times before:

Tim Chase wrote:
 4) Don't be afraid to reuse existing technologies:  could installing
 osCommerce on a $3/month web-server and tweaking the PHP code have sufficed
 for what you need?  Could you have used Django+Satchmo to get yourself up
 and running with proven code, tweaking what you need?  I remember you
 dismissing the suggestion to use existing web-frameworks.

Victor Subervi wrote:
 sigh
 Bringing that up again, are you? I was all but done with the shopping cart
 when you suggested I re-invent the wheel based on another technology. Yeah,
 sure, throw out 10,000 lines of the 12,000 line program so I can rebuild on
 a new technology. Brilliant, that. Thanks for the suggestion. Now, can we
 get back to my question?
 /sigh

Once again: Victor Subervi has been crowd sourcing code for paid
projects on this list for 2-3 years now. He's made it very clear he
doesn't care about good practices, as anyone who ever engaged in the
pointless debate to get him to use bound parameters in his SQL
statements will recall.

He's comp.lang.python's version of Sisyphus. Or maybe Sisyphus'
boulder...I forget where I was going with this.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-10 Thread Ian Kelly
On Wed, Mar 9, 2011 at 2:01 PM, Victor Subervi victorsube...@gmail.com wrote:
 titleMaya 2012: Transform At the Source/title

Yow.  You're designing a Maya 2012 website to help some travel company
bilk gullible people out of thousands of dollars?  I would be ashamed
to have anything to do with this.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Don't Want Visitor To See Nuttin'

2011-03-09 Thread Ian

On 09/03/2011 21:01, Victor Subervi wrote:
The problem is that it prints Content-Type: text/html to the screen 
If you can see what is intended to be a header, then it follows that you 
are not sending the header correctly.


Sorry - can't tell you how to send a header. You don't say what 
framework you are using.


Ian


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