janus87's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
16 (0.02 per day)
Joined:
25-January 12
Profile Views:
391
Last Active:
User is offline Jan 16 2013 08:11 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

No latest visitors to show

Icon   janus87 has not set their status

Posts I've Made

  1. In Topic: Python cgi.FieldStorage field delete problem.

    Posted 15 Jan 2013

    That is so weird because it says you can:

    "Individual form fields can be deleted using the del operator."

    Lies!!!
  2. In Topic: Python cgi.FieldStorage field delete problem.

    Posted 15 Jan 2013

    View PostSimown, on 15 January 2013 - 05:59 PM, said:

    You can remove things generally from Python structures, do you absolutely need to use cgi.FieldStore?


    Yes, for web development. Is there an alternative to using cgi.FieldStorage to retrieve post vars, besides using a framework?
  3. In Topic: Python cgi.FieldStorage field delete problem.

    Posted 15 Jan 2013

    View PostSimown, on 15 January 2013 - 05:49 PM, said:

    I'm not familiar with this module, but looking at the functions it contains, I'd guess not.



    Yeah man, I've been looking all over the place.

    I just want the ability to unset post vars like you could in php:

    unset($_POST['blah']);
    
    
  4. In Topic: Python cgi.FieldStorage field delete problem.

    Posted 15 Jan 2013

    View PostSimown, on 15 January 2013 - 05:45 PM, said:

    On that website:

    Quote

    Access to form data is provided via the FieldStorage class. This class is similar to the standard library module cgi FieldStorage.

    Similar to cgi.FieldStorage, not exactly the same though. cgi.FieldStorage doesn't have a delete method.



    So you are saying there is no way of deleting FieldStorage objects?
  5. In Topic: Python cgi.FieldStorage field delete problem.

    Posted 15 Jan 2013

    Basically, from how I understand it is that form['keyname'] returns an object and can be treated as such. So you should be able to call something like.

    del form['key']
    
    


    No problem.

    Or am I being a complete idiot? Hahaha

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
February 4
Gender:
Years Programming:
6+
Programming Languages:
C/C++, PHP, Python

Contact Information

E-mail:
Private

Comments

janus87 has no profile comments yet. Why not say hello?