Subversion Repositories basico

Rev

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

Rev 382 Rev 399
Line 33... Line 33...
33
33
34
34
35
    def get_services(self):
35
    def get_services(self):
36
        self.srvant = self.get_service('Annotation')
36
        self.srvant = self.get_service('Annotation')
37
        self.srvutl = self.get_service('Utils')
37
        self.srvutl = self.get_service('Utils')
-
 
38
-
 
39
-
 
40
    def get_target_path(self, aid):
-
 
41
        source = self.get_source_path(aid)
-
 
42
        target_dir = LPATH['CACHE_HTML']
-
 
43
        target_file = os.path.basename(source).replace('.adoc', '.html')
-
 
44
        path = os.path.join(target_dir, target_file)
-
 
45
        return path
-
 
46
-
 
47
-
 
48
    def get_source_path(self, aid):
-
 
49
        return self.srvant.get_content_file(aid)
38
50
39
51
40
    def generate_preview(self, aid):
52
    def generate_preview(self, aid):
41
        adocprops = ''
53
        adocprops = ''
42
        for prop in ADOCPROPS:
54
        for prop in ADOCPROPS: