示例#1
0
    def getNote(self, setup, id):
        parsed = informer.parseSetup(setup)
        project = parsed['project']
        shot = parsed['shot']
        url = informer.getProjectShotNoteUrl(project, shot, id, 'xml')

        data = self.GET(url)
        deserializer = Deserializer(data)
        notes = self._getObjects(deserializer)
        return notes[0]
示例#2
0
    def updateNote(self, setup, updates):
        parsed = informer.parseSetup(setup)
        project = parsed['project']
        shot = parsed['shot']
        id = updates['id']
        del updates['id']

        url = informer.getProjectShotNoteUrl(project, shot, id, 'xml')
        result = self.PUT(url, updates)

        deserializer = Deserializer(result)
        notes = self._getObjects(deserializer)
        return notes
示例#3
0
文件: urls.py 项目: alatteri/informer
)

# --------------------
# informer urls:
#
conf = instinctual.getConf()

pat_project = '[^/]+'
pat_shot    = '[^/]+'
pat_note    = '(\d+)'
pat_element = '(\d+)'

xml_url_shots           = rel(informer.getShotsUrl(format='xml'))
xml_url_projects        = rel(informer.getProjectsUrl(format='xml'))
xml_url_project_shots   = rel(informer.getProjectShotsUrl(pat_project, format='xml'))
xml_url_note            = rel(informer.getProjectShotNoteUrl(pat_project, pat_shot, pat_note, format='xml'))
xml_url_notes           = rel(informer.getProjectShotNotesUrl(pat_project, pat_shot, format='xml'))
xml_url_element         = rel(informer.getProjectShotElementUrl(pat_project, pat_shot, pat_element, format='xml'))
xml_url_elements        = rel(informer.getProjectShotElementsUrl(pat_project, pat_shot, format='xml'))
xml_url_users           = rel(informer.getUsersUrl(format='xml'))
xml_url_events          = rel(informer.getProjectShotEventsUrl(pat_project, pat_shot, format='xml'))
xml_url_frames          = rel(informer.getFramesUrl(format='xml'))
xml_url_renders         = rel(informer.getProjectShotRendersUrl(pat_project, pat_shot, format='xml'))
xml_url_logs            = rel(informer.getProjectShotLogsUrl(pat_project, pat_shot, format='xml'))

json_url_shots           = rel(informer.getShotsUrl(format='json'))
json_url_projects        = rel(informer.getProjectsUrl(format='json'))
json_url_project_shots   = rel(informer.getProjectShotsUrl(pat_project, format='json'))
json_url_note            = rel(informer.getProjectShotNoteUrl(pat_project, pat_shot, pat_note, format='json'))
json_url_notes           = rel(informer.getProjectShotNotesUrl(pat_project, pat_shot, format='json'))
json_url_element         = rel(informer.getProjectShotElementUrl(pat_project, pat_shot, pat_element, format='json'))