svoid dm_moduleLibraryComments_mergeFromRemote(S computerID) { L lRemote = dm_remote_callModule_safeRestruct(computerID, dm_remote_requireModule(computerID, "#1019617/ModuleLibraryComments"), 'concepts); print("Got " + n2(lRemote, "remote entry", "remote entries")); O module = dm_requireModule("#1019617/ModuleLibraryComments"); for (O o : lRemote) { S snippetID = getString(o, 'snippetID); if (empty(snippetID)) continue; S rComment = getString(o, 'comment); if (nempty(rComment)) { S comment = dm_call(module, 'getComment, snippetID); if (nempty(comment) && neq(rComment, comment)) print("Conflict for snippet ID: " + snippetID); else if (empty(comment)) { dm_call(module, 'setComment, snippetID, rComment); print("Set comment for " + snippetID); } } S rForPublic = getString(o, 'forPublic); if (nempty(rForPublic)) { S forPublic = dm_call(module, 'getForPublic, snippetID); if (nempty(forPublic) && neq(rForPublic, forPublic)) print("Conflict for snippet ID: " + snippetID); else if (empty(forPublic)) { dm_call(module, 'setForPublic, snippetID, rForPublic); print("Set for-public value for " + snippetID); } } } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020515 |
Snippet name: | dm_moduleLibraryComments_mergeFromRemote |
Eternal ID of this version: | #1020515/2 |
Text MD5: | 50771e5c4d27b1d6ab8316c6916aa21b |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-25 17:41:13 |
Source code size: | 1306 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 311 / 323 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |