help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pierre-yves guido

    #1

    help

    hello (I hope my english is not so bad),

    I'm doing a training course and I'm a newbie in Python. My problem :
    I have a form, and when I click, I make an update. But all the parameters
    are all required to make the update. So I'd like to put in my code something
    like [optional]...

    My code (simplyfied) :

    prg.ev_ind_upda te(wf_pk_ev_ind =wf_pk_ev_ind,w f_fonction=wf_f onction,wf_nom= wf_nom)

    and so, when I put nothing in wf_nom, it put me that error :"the parameter
    wf_nom...was omitted from the request...". But sometimes, wf_nom is not
    required !

    Thanks to help a poor young boy

    _______________ _______________ _______________ _______________ _____
    Personnalisez votre Messenger avec Live.com


  • Bruno Desthuilliers

    #2
    Re: help

    pierre-yves guido a écrit :
    hello (I hope my english is not so bad),
    De ce point de vue là, ça peut aller...
    I'm doing a training course and I'm a newbie in Python. My problem :
    I have a form,
    HTML form ? GUI form ? In both cases, using which
    environment/libs/framework ?
    and when I click,
    Where ?
    I make an update. But all the
    parameters are all required to make the update. So I'd like to put in my
    code something like [optional]...
    >
    My code (simplyfied) :
    >
    prg.ev_ind_upda te(wf_pk_ev_ind =wf_pk_ev_ind,w f_fonction=wf_f onction,wf_nom= wf_nom)
    May I suggest the use of humanly readable meaningfull names ?
    >
    and so, when I put nothing in wf_nom, it put me that error :"the
    parameter wf_nom...was omitted from the request...".
    Looks like some Zope stuff.
    But sometimes,
    wf_nom is not required !
    Then make it an optional parameter. How to do so depends on context not
    given here, so we can't help much unless you post enough informations.

    Comment

    • Bruno Desthuilliers

      #3
      Re: help

      Bruno Desthuilliers a écrit :
      pierre-yves guido a écrit :
      >
      >hello (I hope my english is not so bad),
      >
      >
      De ce point de vue là, ça peut aller...
      >
      Oh, yes, while we're at it, I forgot to mention: there's also a french
      Python newsgroup, fr.comp.lang.py thon. It's far from being as active as
      this one[1][2], but it's as friendly and tries very hard to be as
      helpful !-)

      [1] this can be seen positive too - at least your posts won't go
      unnoticed !-)

      [2] anyway, very few newsgroups are as active (abd friendly and helpful)
      as c.l.py

      Comment

      Working...