Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  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())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement