File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 determine_media_type ,
8282 extract_data_from_signature ,
8383 filter_resource ,
84+ get_full_path ,
8485 has_task_completed ,
8586 validate_manifest ,
8687)
Original file line number Diff line number Diff line change 77from functools import partial
88
99from asgiref .sync import sync_to_async
10+ from django .conf import settings
1011from django .db import IntegrityError
1112from jsonschema import Draft7Validator , ValidationError , validate
1213from pysequoia .packet import PacketPile , Tag
3435log = logging .getLogger (__name__ )
3536
3637
38+ def get_full_path (base_path , pulp_domain = None ):
39+ if settings .DOMAIN_ENABLED :
40+ domain = pulp_domain or get_domain ()
41+ return f"{ domain .name } /{ base_path } "
42+ return base_path
43+
44+
3745def get_accepted_media_types (headers ):
3846 """
3947 Returns a list of media types from the Accept headers.
You can’t perform that action at this time.
0 commit comments