Subversion Repositories basico

Rev

Rev 354 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 354 Rev 355
Line 54... Line 54...
54
        '''
54
        '''
55
        return "%s@%s" % (sid, str(uuid.uuid4()))
55
        return "%s@%s" % (sid, str(uuid.uuid4()))
56
56
57
57
58
    def create(self, annotation):
58
    def create(self, annotation):
59
        # Old way to store annotations
-
 
60
        ANNOTATION_FILE_METADATA = LPATH['ANNOTATIONS'] + annotation['AID'] + '.json'
59
        ANNOTATION_FILE_METADATA = LPATH['ANNOTATIONS'] + annotation['AID'] + '.json'
61
        ANNOTATION_FILE_CONTENT = LPATH['ANNOTATIONS'] + annotation['AID'] + '.adoc'
60
        ANNOTATION_FILE_CONTENT = LPATH['ANNOTATIONS'] + annotation['AID'] + '.adoc'
62
        annotation['Timestamp'] = self.srvutl.timestamp()
61
        annotation['Timestamp'] = self.srvutl.timestamp()
63
        annotation['Created'] = self.srvutl.timestamp()
62
        annotation['Created'] = self.srvutl.timestamp()
64
63