<div dir="ltr">Joan, you can do:<div><br></div><div>python</div><div>import geonode</div><div>print geonode.__file__</div><div>and then go to that location to find the right file.</div><div><br></div><div>-a</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 17, 2015 at 1:45 PM, Joan <span dir="ltr"><<a href="mailto:joan.machado@gmail.com" target="_blank">joan.machado@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi thank you for all, but I try to follow your steps, however I can't find the geonode/base/forms.py file anywhere!<br><br>root@osmtest:~# sudo find / -iname '*forms.py*' -type f -exec grep -l 'Resource<br>BaseForm' {} \;<br>root@osmtest:~#_<br><br></div>No match results found!<br><br></div>can you help me please?.<br><br></div>regards.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Joan.<br><div><div><div><div><div><div><div><br><br><br></div></div></div></div></div></div></div></font></span></div><div class="gmail_extra"><span class=""><br><div class="gmail_quote">2015-12-16 5:30 GMT-06:00 Tom Kralidis <span dir="ltr"><<a href="mailto:tomkralidis@gmail.com" target="_blank">tomkralidis@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Wed, 16 Dec 2015, Simone Dalmasso wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Wed, 16 Dec 2015 12:15:09 +0100<br>
From: Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
To: Joan <<a href="mailto:joan.machado@gmail.com" target="_blank">joan.machado@gmail.com</a>><br>
Cc: "<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>" <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
Subject: Re: [GeoNode-users] How Add Custom Metadata Fields<span><br>
<br>
Hi,<br>
<br>
to add fields you have to add them to the ResourceBase model:<br>
<a href="https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L205" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L205</a>,<br>
<br>
then make sure the form supports them<br>
<a href="https://github.com/GeoNode/geonode/blob/master/geonode/base/forms.py#L59" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/base/forms.py#L59</a>,<br>
<br>
and the pycsw catalogue as well (@tomkralidis correct me):<br>
<a href="https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local_mappings.py" rel="noreferrer" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local_mappings.py</a><br>
</span></blockquote>
<br>
pycsw stores one field per CSW queryable. If the fields being added are CSW<br>
queryables, then they can be added here. Otherwise, pycsw will work as<br>
expected for freetext/spatial/attribute searches.<div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2015-12-15 21:00 GMT+01:00 Joan <<a href="mailto:joan.machado@gmail.com" target="_blank">joan.machado@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, we are preparing the GeoNode for a project, where we need add several<br>
custom metadata fields.<br>
<br>
Help me please.<br>
<br>
Regards.<br>
<br>
Joan.<br>
<br>
</blockquote></blockquote>
</div></div></blockquote></div><br><br clear="all"><br></span><span class="">-- <br><div><div dir="ltr"><span><span style="font-size:24.0pt;font-family:Webdings;color:#92d050"><img src="cid:image003.png@01CF4CF6.96370E10" alt="recicla2" height="44" width="45"></span></span><span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#92d050"> </span></span><span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#70ad47">NO imprima este email, a menos que sea muy necesario. Salvemos árboles</span></b></span></div></div>
</span></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>