@@ -119,7 +119,7 @@ def __init__(
119119 self ._current_entity = None
120120
121121 self ._project_id = 0
122- self ._project_name = "MEDM Project"
122+ self ._project_name = "FlowAM Project"
123123 self ._initialize_project_info ()
124124
125125 # -------------------------------------------------------------------------
@@ -179,7 +179,7 @@ def _initialize_project_info(self) -> None:
179179 self ._project_name = self ._app .context .project ["name" ]
180180 except Exception as e :
181181 self ._app .log_warning (
182- f"MEDM LatestPublish: Failed to initialize project info: { type (e ).__name__ } : { e } . "
182+ f"FlowAM LatestPublish: Failed to initialize project info: { type (e ).__name__ } : { e } . "
183183 "Using default project values. This may indicate the session project was not "
184184 "initialized or the project ID is invalid."
185185 )
@@ -200,10 +200,10 @@ def _populate_model_from_selected_item(
200200
201201 asset = self ._extract_asset_from_tree_item (selected_item )
202202 if asset is None :
203- self ._app .log_warning ("MEDM : Could not extract asset from selected item" )
203+ self ._app .log_warning ("FlowAM : Could not extract asset from selected item" )
204204 return
205205
206- self ._app .log_debug (f"MEDM : Asset extracted: { asset .name } " )
206+ self ._app .log_debug (f"FlowAM : Asset extracted: { asset .name } " )
207207
208208 children_asset_sg_dicts = self ._fetch_asset_children (asset )
209209
@@ -218,14 +218,14 @@ def _populate_model_from_selected_item(
218218 children_asset_sg_dicts = [self ._asset_to_sg_dict (asset )]
219219 except Exception as e :
220220 self ._app .log_warning (
221- f"MEDM : Could not convert leaf asset '{ asset .name } ' to sg_dict: { e } "
221+ f"FlowAM : Could not convert leaf asset '{ asset .name } ' to sg_dict: { e } "
222222 )
223223 # Keep a reference to the raw asset so we can still fetch its
224224 # drafts below.
225225 leaf_asset_fallback = asset
226226
227227 self ._app .log_debug (
228- f"MEDM : Fetched { len (children_asset_sg_dicts )} latest version dicts from children"
228+ f"FlowAM : Fetched { len (children_asset_sg_dicts )} latest version dicts from children"
229229 )
230230
231231 assets_for_draft_lookup = [
@@ -248,7 +248,7 @@ def _populate_model_from_selected_item(
248248 self ._cache .drafts [child_asset .id ] = raw_drafts
249249 except Exception as e :
250250 self ._app .log_debug (
251- f"MEDM : Could not fetch drafts for '{ child_asset .name } ': { e } "
251+ f"FlowAM : Could not fetch drafts for '{ child_asset .name } ': { e } "
252252 )
253253 continue
254254
@@ -257,12 +257,12 @@ def _populate_model_from_selected_item(
257257 try :
258258 draft_dicts .append (self ._draft_to_sg_dict (draft_info , child_asset ))
259259 self ._app .log_debug (
260- f"MEDM : Found draft '{ getattr (draft_info , 'name' , '?' )} ' "
260+ f"FlowAM : Found draft '{ getattr (draft_info , 'name' , '?' )} ' "
261261 f"for asset '{ child_asset .name } '"
262262 )
263263 except Exception as e :
264264 self ._app .log_warning (
265- f"MEDM : Could not convert draft '{ getattr (draft_info , 'name' , '?' )} ' "
265+ f"FlowAM : Could not convert draft '{ getattr (draft_info , 'name' , '?' )} ' "
266266 f"for '{ child_asset .name } ': { e } "
267267 )
268268
@@ -302,7 +302,7 @@ def _populate_model_from_selected_item(
302302 draft_count += 1
303303
304304 self ._app .log_debug (
305- f"MEDM : center panel now has { self .rowCount ()} items "
305+ f"FlowAM : center panel now has { self .rowCount ()} items "
306306 f"({ draft_count } draft(s), { published_count } published)"
307307 )
308308
@@ -353,27 +353,27 @@ def _fetch_asset_children(self, asset: Asset) -> List[Dict[str, Any]]:
353353 for child_asset in child_assets :
354354 if _is_structural_asset_util (child_asset , self ._flow_module ):
355355 self ._app .log_debug (
356- f"MEDM : Skipping structural asset '{ child_asset .name } ' from center panel"
356+ f"FlowAM : Skipping structural asset '{ child_asset .name } ' from center panel"
357357 )
358358 continue
359359 try :
360360 asset_dict = self ._asset_to_sg_dict (child_asset )
361361 children_asset_sg_dicts .append (asset_dict )
362362 self ._app .log_debug (
363- f"MEDM : Added asset '{ child_asset .name } ' with latest version "
363+ f"FlowAM : Added asset '{ child_asset .name } ' with latest version "
364364 f"v{ child_asset .version_number } "
365365 )
366366 except Exception as e :
367367 self ._app .log_warning (
368- f"MEDM : Error processing child asset '{ child_asset .name } ': { e } "
368+ f"FlowAM : Error processing child asset '{ child_asset .name } ': { e } "
369369 )
370370 continue
371371
372372 except Exception as e :
373- self ._app .log_warning (f"MEDM : Error fetching asset children: { e } " )
373+ self ._app .log_warning (f"FlowAM : Error fetching asset children: { e } " )
374374
375375 self ._app .log_debug (
376- f"MEDM : Loaded { len (children_asset_sg_dicts )} children assets for asset '{ asset .name } '"
376+ f"FlowAM : Loaded { len (children_asset_sg_dicts )} children assets for asset '{ asset .name } '"
377377 )
378378 return children_asset_sg_dicts
379379
@@ -385,7 +385,7 @@ def _asset_to_sg_dict(self, asset: Asset) -> Dict[str, Any]:
385385 :returns: Dictionary with Shotgun-compatible fields
386386 """
387387 sg_publish_type_id = None
388- sg_publish_type_code = "MEDM Asset"
388+ sg_publish_type_code = "FlowAM Asset"
389389
390390 medm_type_ids = asset .type_ids
391391 if len (medm_type_ids ) > 0 :
@@ -404,7 +404,7 @@ def _asset_to_sg_dict(self, asset: Asset) -> Dict[str, Any]:
404404 "created_by" : {
405405 "type" : "HumanUser" ,
406406 "id" : 1 ,
407- "name" : asset .created_by or "MEDM User" ,
407+ "name" : asset .created_by or "FlowAM User" ,
408408 },
409409 "entity" : {"type" : "Asset" , "id" : None , "name" : asset .name },
410410 "project" : {
@@ -453,7 +453,7 @@ def _draft_to_sg_dict(
453453 :returns: sg_data dictionary compatible with action hooks and center panel UI.
454454 """
455455 sg_publish_type_id = None
456- sg_publish_type_code = "MEDM Asset"
456+ sg_publish_type_code = "FlowAM Asset"
457457
458458 # Prefer the published asset's type_ids; fall back to the draft's own
459459 # type_ids for NewDraftInfo where no published asset exists yet.
@@ -524,7 +524,7 @@ def _fetch_new_draft_items_for_parent(
524524 draft_type = "new"
525525 )
526526 except Exception as e :
527- self ._app .log_warning (f"MEDM : Could not fetch new-asset drafts: { e } " )
527+ self ._app .log_warning (f"FlowAM : Could not fetch new-asset drafts: { e } " )
528528 all_new_drafts = []
529529 self ._cache .drafts [self ._NEW_DRAFTS_CACHE_KEY ] = all_new_drafts
530530 else :
@@ -537,13 +537,13 @@ def _fetch_new_draft_items_for_parent(
537537 try :
538538 draft_sg_dict = self ._draft_to_sg_dict (draft_info , asset = None )
539539 self ._app .log_debug (
540- f"MEDM : Found new-asset draft '{ getattr (draft_info , 'name' , '?' )} ' "
540+ f"FlowAM : Found new-asset draft '{ getattr (draft_info , 'name' , '?' )} ' "
541541 f"under parent '{ parent_asset_id } '"
542542 )
543543 result .append (draft_sg_dict )
544544 except Exception as e :
545545 self ._app .log_warning (
546- f"MEDM : Could not convert new-asset draft "
546+ f"FlowAM : Could not convert new-asset draft "
547547 f"'{ getattr (draft_info , 'name' , '?' )} ': { e } "
548548 )
549549 return result
@@ -601,7 +601,7 @@ def get_sg_data():
601601 self .appendRow (qt_item )
602602
603603 self ._app .log_debug (
604- f"MEDM : Added item '{ qt_item .text ()} ' to model (row count: { self .rowCount ()} )"
604+ f"FlowAM : Added item '{ qt_item .text ()} ' to model (row count: { self .rowCount ()} )"
605605 )
606606
607607 def _set_tooltip (self , item : QtGui .QStandardItem , sg_item : Dict [str , Any ]) -> None :
0 commit comments