Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Функция вызова
- elif action == 'current_user_project_names':
- pf = self.pf
- project_names = pf.get_current_user_project_names()
- result = {
- 'project_names': project_names
- }
- self.write(json.dumps(result))
- # Функция обработки
- def get_current_user_project_names(self, content):
- for obj in content:
- if obj.GetClassName() == 'IntFolder':
- self.get_current_user_project_names(obj.GetContents())
- elif obj.GetClassName() == 'IntPrj':
- print(obj.GetFullName())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement