SHARE
TWEET

Untitled

a guest Jan 24th, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Функция вызова
  2.         elif action == 'current_user_project_names':
  3.             pf = self.pf
  4.             project_names = pf.get_current_user_project_names()
  5.             result = {
  6.                 'project_names': project_names
  7.             }
  8.             self.write(json.dumps(result))
  9.  
  10. # Функция обработки
  11.    def get_current_user_project_names(self, content):
  12.         for obj in content:
  13.             if obj.GetClassName() == 'IntFolder':
  14.                 self.get_current_user_project_names(obj.GetContents())
  15.             elif obj.GetClassName() == 'IntPrj':
  16.                 print(obj.GetFullName())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top