[Bio] / FigKernelPackages / FIG.py Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIG.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11, Fri Apr 15 19:55:44 2005 UTC revision 1.12, Fri Oct 21 14:50:26 2005 UTC
# Line 253  Line 253 
253    
254      return ip      return ip
255    
256    def top_link():
257    
258        #
259        # Determine if this is a toplevel cgi or one in one of the subdirs (currently
260        # just /p2p).
261        #
262    
263        sname = os.getenv("SCRIPT_NAME")
264    
265        if sname is not None:
266            parts = os.getenv("SCRIPT_NAME").split('/');
267    
268            if len(parts) > 2 and parts[-2] == 'FIG':
269                top = '.'
270            elif len(parts) > 3 and parts[-3] == 'FIG':
271                top = '..'
272            else:
273                top = FIG_Config.cgi_base
274        else:
275            top = FIG_Config.cgi_base
276    
277    
278    
279        return top
280    
281  def cgi_url():  def cgi_url():
282      return plug_url(FIG_Config.cgi_url)      return top_link()
283        # return plug_url(FIG_Config.cgi_url)
284    
285  def temp_url():  def temp_url():
286      return plug_url(FIG_Config.temp_url)      return plug_url(FIG_Config.temp_url)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3