Project

General

Profile

Actions

Notes

FCS

Out of the box FCS (run.cgi/fcs) is not working due to following reasons:

  • Fixed setting of default corpus in lib/actions.py:
    @@ -2215,7 +2218,7 @@ class Actions(ConcCGI):
    
             # default values
             self._headers['Content-Type'] = 'application/XML'
    -        corpname = 'brown'
    +        corpname = 'susanne'
             numberOfRecords = 0
             current_version = 1.2
             # supported parameters for all operations
    
  • Unauthorized action fcs in lib/conccgi.py:
    @@ -291,7 +291,7 @@ class ConcCGI(CGIPublisher):
                     'gdexconf', 'refs_up', 'shuffle', 'kwicleftctx', 'kwicrightctx', 'ctxunit', 'cup_hl')
    
         def _requires_corpus_access(self, action):
    -        return action not in ('login', 'loginx', 'logoutx')
    +        return action not in ('login', 'loginx', 'logoutx', 'fcs')
    
         def _init_default_settings(self, options):
             if 'shuffle' not in options:
    
  • Missing template templates/fcs.tmpl
  • Missing xslt file public/files/xsl/fcs2html.xsl

Updated by Redmine Admin almost 8 years ago · 1 revisions