Skip to content

Commit 2a821b5

Browse files
Merge branch 'main-ui' of github.com:zalf-rdm/geonode into main-ui
2 parents acc0d68 + 7263677 commit 2a821b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+662
-866
lines changed

.github/workflows/backport.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

geonode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import os
2121

22-
__version__ = (4, 4, 3, 'final', 0)
22+
__version__ = (4, 4, 3, "final", 0)
2323

2424

2525
def get_version():

geonode/assets/admin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
class PrettyJSONWidget(widgets.Textarea):
15-
1615
def format_value(self, value):
1716
try:
1817
value = json.dumps(json.loads(value), indent=2, sort_keys=True)

geonode/assets/handlers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010

1111

1212
class AssetDownloadHandlerInterface:
13-
1413
def create_response(self, asset: Asset, attachment: bool = False, basename=None, path=None) -> HttpResponse:
1514
raise NotImplementedError()
1615

1716

1817
class AssetHandlerInterface:
19-
2018
def handled_asset_class(self):
2119
raise NotImplementedError()
2220

geonode/assets/local.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def get_link_url(self, asset: LocalAsset):
3535

3636

3737
class LocalAssetHandler(AssetHandlerInterface):
38-
3938
link_url_handlers = {"3dtiles": IndexLocalLinkUrlHandler()}
4039

4140
@staticmethod
@@ -219,7 +218,6 @@ def __force_real_instance(cls, asset):
219218

220219

221220
class LocalAssetDownloadHandler(AssetDownloadHandlerInterface):
222-
223221
def create_response(
224222
self, asset: LocalAsset, attachment: bool = False, basename: str = None, path: str = None
225223
) -> HttpResponse:

geonode/assets/serializers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
class ClassTypeField(DynamicComputedField):
35-
3635
def get_attribute(self, instance):
3736
return type(instance).__name__
3837

@@ -59,7 +58,6 @@ def get_attribute(self, instance):
5958

6059

6160
class AssetSerializer(DynamicModelSerializer):
62-
6361
owner = SimpleUserSerializer(embed=False)
6462
asset_type = ClassTypeField()
6563
subinfo = AssetSubclassField()

geonode/assets/tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343

4444
class AssetsTests(APITestCase):
45-
4645
def test_handler_registry(self):
4746
# Test registry
4847
self.assertIsNotNone(asset_handler_registry)
@@ -215,7 +214,6 @@ def test_clone_mixed_data(self):
215214

216215

217216
class AssetsDownloadTests(APITestCase):
218-
219217
fixtures = ["initial_data.json", "group_test_data.json", "default_oauth_apps.json"]
220218

221219
def _get_streaming_content(self, response):

geonode/assets/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def create_asset_and_link(
9696
mime=None,
9797
clone_files: bool = True,
9898
) -> tuple[Asset, Link]:
99-
10099
asset_handler = handler or asset_handler_registry.get_default_handler()
101100
asset = link = None
102101
try:

geonode/base/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def has_delete_permission(self, request, obj=None):
180180
class ContactRoleAdmin(admin.ModelAdmin):
181181
model = ContactRole
182182
list_display_links = ("id",)
183-
list_display = ("id", "contact", "resource", "role")
184-
list_editable = ("contact", "resource", "role")
183+
list_display = ("id", "contact", "resource", "role", "order")
184+
list_editable = ("contact", "resource", "role", "order")
185185
form = forms.modelform_factory(ContactRole, fields="__all__")
186186

187187

0 commit comments

Comments
 (0)