Hi, I am using geonode in my organization to build a central repository in order to save all the spatial files we have. We wanted to customize few things the way we wanted. First was the uploading spatial option. We wanted to upload files in a particular naming format. In case the naming is not according to our choice, we want to throw an error message and deny uploading it. So, I will have to write a regular expression to check what naming convention the uploader is using.* Can you point out all the files where I need to edit the upload data code and put the regular expression code to check the uploader's naming convention?* Thanx! Bhargavi M Shankarananda II year, Master of Technology, International Institute of Information Technology - Bangalore
Can someone point out where the java script is located which takes care of the meta data(The details such as title, abstract, supplementary information etc ) entered by the user after uploading the data. On Tue, Feb 1, 2011 at 3:12 PM, BhargaviM Shankarananda < bhargavim.shankarananda@iiitb.net> wrote: > Hi, > > I am using geonode in my organization to build a central repository in > order to save all the spatial files we have. We wanted to customize few > things the way we wanted. > > First was the uploading spatial option. We wanted to upload files in a > particular naming format. In case the naming is not according to our choice, > we want to throw an error message and deny uploading it. So, I will have to > write a regular expression to check what naming convention the uploader is > using.* Can you point out all the files where I need to edit the upload > data code and put the regular expression code to check the uploader's naming > convention?* > > Thanx! > > Bhargavi M Shankarananda > II year, Master of Technology, > International Institute of Information Technology - Bangalore > > -- Regards Smitha V MT2009149 IIITB
For the upload form: template (includes javascript): http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/templates/maps/layer_upload.html handler: https://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/maps/views.py#L879 We're currently rewriting the upload form on synth, so if you intend to pull in changes from there you should put the check into the handler. For the metadata form: python view: http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/maps/views.py#L665 template: http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/templates/maps/layer_describe.html Hope that helps. On Tue, Feb 1, 2011 at 5:49 AM, Smitha V <smitha.v@iiitb.net> wrote: > Can someone point out where the java script is located which takes care of > the meta data(The details such as title, abstract, supplementary information > etc ) entered by the user after uploading the data. > > > On Tue, Feb 1, 2011 at 3:12 PM, BhargaviM Shankarananda < > bhargavim.shankarananda@iiitb.net> wrote: > >> Hi, >> >> I am using geonode in my organization to build a central repository in >> order to save all the spatial files we have. We wanted to customize few >> things the way we wanted. >> >> First was the uploading spatial option. We wanted to upload files in a >> particular naming format. In case the naming is not according to our choice, >> we want to throw an error message and deny uploading it. So, I will have to >> write a regular expression to check what naming convention the uploader is >> using.* Can you point out all the files where I need to edit the upload >> data code and put the regular expression code to check the uploader's naming >> convention?* >> >> Thanx! >> >> Bhargavi M Shankarananda >> II year, Master of Technology, >> International Institute of Information Technology - Bangalore >> >> > > > -- > Regards > Smitha V > MT2009149 > IIITB > > -- Sebastian Benthall OpenGeo - http://opengeo.org
Thanks it helped a lot. We were able to make sure the name of the file being uploaded followed a naming convention of our organisation. Can i get to know where the files related to search and advanced search is stored? On Wed, Feb 2, 2011 at 12:41 AM, Sebastian Benthall <seb@opengeo.org> wrote: > For the upload form: > template (includes javascript): > http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/templates/maps/layer_upload.html > handler: > https://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/maps/views.py#L879 > > We're currently rewriting the upload form on synth, so if you intend to > pull in changes from there you should put the check into the handler. > > > For the metadata form: > python view: > http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/maps/views.py#L665 > template: > http://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/templates/maps/layer_describe.html > > Hope that helps. > > > > On Tue, Feb 1, 2011 at 5:49 AM, Smitha V <smitha.v@iiitb.net> wrote: > >> Can someone point out where the java script is located which takes care of >> the meta data(The details such as title, abstract, supplementary information >> etc ) entered by the user after uploading the data. >> >> >> On Tue, Feb 1, 2011 at 3:12 PM, BhargaviM Shankarananda < >> bhargavim.shankarananda@iiitb.net> wrote: >> >>> Hi, >>> >>> I am using geonode in my organization to build a central repository in >>> order to save all the spatial files we have. We wanted to customize few >>> things the way we wanted. >>> >>> First was the uploading spatial option. We wanted to upload files in a >>> particular naming format. In case the naming is not according to our choice, >>> we want to throw an error message and deny uploading it. So, I will have to >>> write a regular expression to check what naming convention the uploader is >>> using.* Can you point out all the files where I need to edit the upload >>> data code and put the regular expression code to check the uploader's naming >>> convention?* >>> >>> Thanx! >>> >>> Bhargavi M Shankarananda >>> II year, Master of Technology, >>> International Institute of Information Technology - Bangalore >>> >>> >> >> >> -- >> Regards >> Smitha V >> MT2009149 >> IIITB >> >> > > > -- > Sebastian Benthall > OpenGeo - http://opengeo.org > > -- Regards Smitha V MT2009149 IIITB