Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
03/20/09 18:08:22 (3 years ago)
Author:
alex
Message:

added handler to export only scripttext with metadata for the member and added new handler to svn quicklinks to update all castlibs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/svn_Utilities.ls

    r225 r228  
    13931393   
    13941394  if ilk(infolist) <> #proplist then 
    1395     infolistPath = thePath & "memberInfo.xml" 
    1396     infolist = mReadXML_2_List(me, infolistPath) 
    1397     if ilk(infolist) <> #proplist then infolist = [:] 
    1398      
    1399     infolist = infolist.getaprop(symbol(fname)) 
    1400     if ilk(infolist) <> #proplist then infolist = [:] 
     1395     
     1396    offs = offset("--!memberProperties:", scrtext) 
     1397     
     1398    if offs > 0 then 
     1399      infolist = scrtext.char[offs + 20 .. length(scrtext)] 
     1400      offs = offset("]", infolist) 
     1401      if offs > 0 then 
     1402        infolist = value(infolist.char[1 .. offs]) 
     1403      end if 
     1404    end if 
     1405     
     1406    if ilk(infolist) <> #proplist then 
     1407      infolistPath = thePath & "memberInfo.xml" 
     1408      infolist = mReadXML_2_List(me, infolistPath) 
     1409      if ilk(infolist) <> #proplist then infolist = [:] 
     1410       
     1411      infolist = infolist.getaprop(symbol(fname)) 
     1412      if ilk(infolist) <> #proplist then infolist = [:] 
     1413    end if 
     1414     
    14011415  end if 
    14021416   
     
    25492563-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    25502564 
     2565on mSVN_Update_AllCastlibs_and_source me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, selectionList, revisionNumber, dontShowAlert 
     2566  mSVN_Update_Working_Copy_ScriptText me, revisionNumber, void, #all, 1 
     2567  mSVN_Update_SelectedCastlib me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, #all, revisionNumber, dontShowAlert 
     2568end 
     2569 
     2570-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2571 
    25512572on mSVN_Update_SelectedCastlib_and_source me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, selectionList, revisionNumber, dontShowAlert 
    25522573  mSVN_Update_Working_Copy_ScriptText me, revisionNumber, void, selectionList, 1 
     
    25602581  castlibList = 0 
    25612582   
    2562   selectionList = string(selectionList) 
    2563   if length(selectionList) > 0 then 
    2564      
    2565     offs = offset("'", selectionList) 
    2566     repeat while offs > 0 
    2567       put QUOTE into char offs of selectionList 
     2583  if symbolP(selectionList) then 
     2584    -- #all 
     2585    clnum = the number of castlibs 
     2586    castlibList = [] 
     2587    repeat with n = 1 to clnum 
     2588      castlibList.add(n) 
     2589    end repeat 
     2590     
     2591  else 
     2592     
     2593    selectionList = string(selectionList) 
     2594    if length(selectionList) > 0 then 
     2595       
    25682596      offs = offset("'", selectionList) 
    2569     end repeat 
    2570      
    2571     if char 1 of selectionList <> "[" then put "[" before selectionList 
    2572     if the last char of selectionList <> "]" then put "]" after selectionList 
    2573      
    2574     selectionList = value(selectionList) 
    2575     if listP(selectionList) then 
    2576       clnum = the number of castlibs + 1 
    2577       castlibList = [] 
    2578       selectionListCnt = count(selectionList) 
    2579       repeat with n = 1 to selectionListCnt 
    2580          
    2581         cl = castlib(selectionList[n]) 
    2582         if ilk(cl) = #castlib then 
    2583           int = cl.number 
    2584           if castlibList.getPos(int) < 1 then 
    2585             castlibList.add(int) 
    2586           end if 
    2587         else 
    2588           int = integer(selectionList[n]) 
    2589           if integerP(int) then 
    2590             if clnum > int then 
    2591               if castlibList.getPos(int) < 1 then castlibList.add(int) 
     2597      repeat while offs > 0 
     2598        put QUOTE into char offs of selectionList 
     2599        offs = offset("'", selectionList) 
     2600      end repeat 
     2601       
     2602      if char 1 of selectionList <> "[" then put "[" before selectionList 
     2603      if the last char of selectionList <> "]" then put "]" after selectionList 
     2604       
     2605      selectionList = value(selectionList) 
     2606      if listP(selectionList) then 
     2607        clnum = the number of castlibs + 1 
     2608        castlibList = [] 
     2609        selectionListCnt = count(selectionList) 
     2610        repeat with n = 1 to selectionListCnt 
     2611           
     2612          cl = castlib(selectionList[n]) 
     2613          if ilk(cl) = #castlib then 
     2614            int = cl.number 
     2615            if castlibList.getPos(int) < 1 then 
     2616              castlibList.add(int) 
     2617            end if 
     2618          else 
     2619            int = integer(selectionList[n]) 
     2620            if integerP(int) then 
     2621              if clnum > int then 
     2622                if castlibList.getPos(int) < 1 then castlibList.add(int) 
     2623              end if 
    25922624            end if 
    25932625          end if 
    2594         end if 
    2595       end repeat 
     2626        end repeat 
     2627      end if 
    25962628    end if 
    25972629  end if 
Note: See TracChangeset for help on using the changeset viewer.