[GeoNode-devel] groups permissions in 2.4

Simone Dalmasso simone.dalmasso at gmail.com
Tue May 5 02:20:29 PDT 2015


Glad you solved. But the correct way is to not use the admin to create
Groups but use the GeoNode section. http://localhost:8000/groups/

The admin can be used to modify existing data.

Regards

2015-05-05 11:18 GMT+02:00 Rainer Lissewski <r.lissewski at aplikate.eu>:

> Hi I found the problem now:
>
> I was creating a group only  through the /admin/auth/group/ link. Then
> this group doesnt show up in the autocomple / GroupProfile.objects.all()
> Object.
>
> The good way to create a group that actually works is
> through /admin/groups/groupprofile/add/ . After doing that the group shows
> up in  /admin/auth/group/ too and can be granted permissions.
>
> Should this go into the docs?
>
> KInd regards and many thanks for your help and patience. Big up GeoNode!
>
>
> _____________________________________
> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
> Linux, GIS and database developer team
>
> Wittmannsdorfer Str. 4
> 12053 Berlin
> Germany / Allemagne
>
> Tel.: +49 (0) 30 28 45 40 71
> Mobil: +49 (0) 163 681 77 34
> Fax: +49 (0)30 / 48 49 81 286
>
> 2015-05-05 11:11 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>
>> Ok so the problem seems to be that you have no groups.
>> How did you create the groups? The correct way is to create them through
>> the Groups section in GeoNode.
>>
>> 2015-05-05 11:08 GMT+02:00 Rainer Lissewski <r.lissewski at aplikate.eu>:
>>
>>> Hi Simone, GroupProfile.objects.all() appears to be empty, this is my
>>> output:
>>>
>>> >>> from geonode.groups.models import GroupProfile
>>> >>> GroupProfile.objects.all()
>>> []
>>>
>>>
>>> _____________________________________
>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>> Linux, GIS and database developer team
>>>
>>> Wittmannsdorfer Str. 4
>>> 12053 Berlin
>>> Germany / Allemagne
>>>
>>> Tel.: +49 (0) 30 28 45 40 71
>>> Mobil: +49 (0) 163 681 77 34
>>> Fax: +49 (0)30 / 48 49 81 286
>>>
>>> 2015-05-05 10:57 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>>>
>>>> Rainer,
>>>> I can't replicate the behavior, I create a group in the group tab and
>>>> then it's available in the autocomplete. The function that is handling that
>>>> is this one
>>>> https://github.com/GeoNode/geonode/blob/master/geonode/views.py#L70 and
>>>> it simply does a GroupProfile.objects.filter.
>>>> Can you try to run these commands:
>>>> $ geonode shell
>>>> >>> from geonode.groups.models import GroupProfile
>>>> >>> GroupProfile.objects.all()
>>>>
>>>> and see whether it's correctly returning your groups.
>>>>
>>>> 2015-05-05 10:26 GMT+02:00 Rainer Lissewski <r.lissewski at aplikate.eu>:
>>>>
>>>>> Hi Simone,
>>>>>
>>>>> I installed 2.4.0+beta25 from the testing ppa and still I cant get
>>>>> any results from the groups autocomplete field. The response for the ajax
>>>>> request is {"count": 0, "users": [], "groups": []}
>>>>>
>>>>> I added an '*' to the  the ALLOWED_HOSTS in local_settings.py, if
>>>>> thats of any importance for above problem.
>>>>>
>>>>> _____________________________________
>>>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>>>> Linux, GIS and database developer team
>>>>>
>>>>> Wittmannsdorfer Str. 4
>>>>> 12053 Berlin
>>>>> Germany / Allemagne
>>>>>
>>>>> Tel.: +49 (0) 30 28 45 40 71
>>>>> Mobil: +49 (0) 163 681 77 34
>>>>> Fax: +49 (0)30 / 48 49 81 286
>>>>>
>>>>> 2015-05-04 14:31 GMT+02:00 Rainer Lissewski <r.lissewski at aplikate.eu>:
>>>>>
>>>>>> super thanks! I'll just use a fresh vagrant vm
>>>>>>
>>>>>>
>>>>>> _____________________________________
>>>>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>>>>> Linux, GIS and database developer team
>>>>>>
>>>>>> Wittmannsdorfer Str. 4
>>>>>> 12053 Berlin
>>>>>> Germany / Allemagne
>>>>>>
>>>>>> Tel.: +49 (0) 30 28 45 40 71
>>>>>> Mobil: +49 (0) 163 681 77 34
>>>>>> Fax: +49 (0)30 / 48 49 81 286
>>>>>>
>>>>>> 2015-05-04 14:25 GMT+02:00 Simone Dalmasso <simone.dalmasso at gmail.com
>>>>>> >:
>>>>>>
>>>>>>> Yes will overwrite the current one. I suggest you to use a new
>>>>>>> Ubuntu though. Because until we release the final the upgrade between
>>>>>>> versions may not be smooth.
>>>>>>>
>>>>>>>
>>>>>>> Il lunedì 4 maggio 2015, Rainer Lissewski <r.lissewski at aplikate.eu>
>>>>>>> ha scritto:
>>>>>>>
>>>>>>>> oh wow! will this be available via ppa directly?
>>>>>>>>
>>>>>>>> _____________________________________
>>>>>>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>>>>>>> Linux, GIS and database developer team
>>>>>>>>
>>>>>>>> Wittmannsdorfer Str. 4
>>>>>>>> 12053 Berlin
>>>>>>>> Germany / Allemagne
>>>>>>>>
>>>>>>>> Tel.: +49 (0) 30 28 45 40 71
>>>>>>>> Mobil: +49 (0) 163 681 77 34
>>>>>>>> Fax: +49 (0)30 / 48 49 81 286
>>>>>>>>
>>>>>>>> 2015-05-04 13:35 GMT+02:00 Simone Dalmasso <
>>>>>>>> simone.dalmasso at gmail.com>:
>>>>>>>>
>>>>>>>>> weird, anyway I'm going to release e new beta today, you can
>>>>>>>>> install it and should solve. If you install it within 4 hours you'll get a
>>>>>>>>> faster and better geonode.
>>>>>>>>>
>>>>>>>>> 2015-05-04 13:33 GMT+02:00 Rainer Lissewski <
>>>>>>>>> r.lissewski at aplikate.eu>:
>>>>>>>>>
>>>>>>>>>> exactly, the autocomplete isnt working
>>>>>>>>>>
>>>>>>>>>> _____________________________________
>>>>>>>>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>>>>>>>>> Linux, GIS and database developer team
>>>>>>>>>>
>>>>>>>>>> Wittmannsdorfer Str. 4
>>>>>>>>>> 12053 Berlin
>>>>>>>>>> Germany / Allemagne
>>>>>>>>>>
>>>>>>>>>> Tel.: +49 (0) 30 28 45 40 71
>>>>>>>>>> Mobil: +49 (0) 163 681 77 34
>>>>>>>>>> Fax: +49 (0)30 / 48 49 81 286
>>>>>>>>>>
>>>>>>>>>> 2015-05-04 13:29 GMT+02:00 Simone Dalmasso <
>>>>>>>>>> simone.dalmasso at gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> On my 2.4 after I create a group in the groups section then it
>>>>>>>>>>> will appear in the autocomplete. Is it not working for you?
>>>>>>>>>>>
>>>>>>>>>>> 2015-05-04 13:25 GMT+02:00 Rainer Lissewski <
>>>>>>>>>>> r.lissewski at aplikate.eu>:
>>>>>>>>>>>
>>>>>>>>>>>> Ok I installed on trusty 14.04 and it is  2.4.0+beta24 (just
>>>>>>>>>>>> checked via aptitude).
>>>>>>>>>>>> Still if I try to set groups permissions as in screenshot
>>>>>>>>>>>> below, I can't choose any existing group..
>>>>>>>>>>>>
>>>>>>>>>>>> [image: Inline-Bild 1]
>>>>>>>>>>>>
>>>>>>>>>>>> _____________________________________
>>>>>>>>>>>> *A P L I K @ T E . E U <http://www.aplikate.eu/>*
>>>>>>>>>>>> Linux, GIS and database developer team
>>>>>>>>>>>>
>>>>>>>>>>>> Wittmannsdorfer Str. 4
>>>>>>>>>>>> 12053 Berlin
>>>>>>>>>>>> Germany / Allemagne
>>>>>>>>>>>>
>>>>>>>>>>>> Tel.: +49 (0) 30 28 45 40 71
>>>>>>>>>>>> Mobil: +49 (0) 163 681 77 34
>>>>>>>>>>>> Fax: +49 (0)30 / 48 49 81 286
>>>>>>>>>>>>
>>>>>>>>>>>> 2015-05-04 13:19 GMT+02:00 Simone Dalmasso <
>>>>>>>>>>>> simone.dalmasso at gmail.com>:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi yes, is implemented and available in the
>>>>>>>>>>>>> ppa:geonode/testing. Beware that geonode 2.4 is available only on ubuntu
>>>>>>>>>>>>> 14.04.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2015-05-04 13:15 GMT+02:00 Rainer Lissewski <
>>>>>>>>>>>>> rainerlissewski at gmail.com>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi is the full groups permissions system implemented in 2.4
>>>>>>>>>>>>>> as available in the ubuntu *ppa:geonode/testing *repo?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>  I saw  https://github.com/GeoNode/geonode/pull/1406 and it
>>>>>>>>>>>>>> appears to be merged still on my 2.4 installation from abovementioned ppa
>>>>>>>>>>>>>> the functionality isnt there..
>>>>>>>>>>>>>> Kind regards
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> geonode-devel mailing list
>>>>>>>>>>>>>> geonode-devel at lists.osgeo.org
>>>>>>>>>>>>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Simone
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Simone
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Simone
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Simone
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>
>>>
>>
>>
>> --
>> Simone
>>
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20150505/f5712965/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 37967 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20150505/f5712965/attachment-0001.png>


More information about the geonode-devel mailing list