<div dir="ltr"><a href="https://qgis.org/api/classQgsProcessingAlgorithm.html#ae39324c4140aa810c290acdd794c5e7f">https://qgis.org/api/classQgsProcessingAlgorithm.html#ae39324c4140aa810c290acdd794c5e7f</a><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Luigi Pirelli<br><br>**************************************************************************************************<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Book: <a href="https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition" target="_blank">Mastering QGIS3 - 3rd Edition</a></div><div>* Hire a team: <a href="http://www.qcooperative.net" target="_blank">http://www.qcooperative.net</a><br>**************************************************************************************************</div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 19 Aug 2020 at 13:28, PALMIER Patrick (Responsable de groupe) - CEREMA/DTerNP/DATHa/MT <<a href="mailto:Patrick.Palmier@cerema.fr">Patrick.Palmier@cerema.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <br>
    <br>
    Hello,<br>
    <br>
    I'm using Qgis 3.1415 46bits on Windows 10 and I try to use the new
    processing parameters controls in processing algorithms<br>
    <br>
    I've used a QgsProcessingParameterDateTime. It wroks well. I have
    access to the calendar form<br>
    <br>
    <i>code below:<br>
      <br>
       </i><i>       self.addParameter( </i><i><br>
    </i><i>            QgsProcessingParameterDateTime(</i><i><br>
    </i><i>                self.DEBUT_PERIODE,</i><i><br>
    </i><i>                <a href="http://self.tr" target="_blank">self.tr</a>('Calendar start'),</i><i><br>
    </i><i>                type=1</i><i><br>
    </i><i>                </i><i><br>
    </i><i>            )</i><i><br>
    </i><i>        )</i><i><br>
    </i><br>
    bus when I try to get the date chosen, I"v got the following error
    message<br>
    <br>
    <span style="color:rgb(255,0,0)">Traceback (most recent call last):<br>
      File
"C:/Users/patrick.palmier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\networks\import_gtfs.py",
      line 175, in processAlgorithm<br>
debut_periode=self.parameterAsDate(parameters,self.DEBUT_PERIODE,context)<br>
      AttributeError: 'ImportGTFS' object has no attribute
      'parameterAsDate'<br>
    </span>
    <p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">Échec d'exécution au bout de 0.04
        secondes</span></p>
    <p style="margin:0px;text-indent:0px"><br>
      code below:<br>
      <br>
    </p>
    <p style="margin:0px;text-indent:0px"><i>debut_periode=self.parameterAsDate(parameters,self.DEBUT_PERIODE,context)<br>
      </i></p>
    <p style="margin:0px;text-indent:0px"><i><br>
      </i>Do you what is wrong?<br>
    </p>
    <p style="margin:0px;text-indent:0px"><br>
    </p>
    <p style="margin:0px;text-indent:0px">Thanks in advance<br>
    </p>
    <br>
    Patrick Palmier
  </div>

_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>